elsassph / hxtsdgen

TypeScript declaration file generator for Haxe JavaScript output target
65 stars 12 forks source link

Cannot render type haxe.io.Encoding into a TypeScript declaration (TODO?) #37

Open sonygod opened 3 years ago

sonygod commented 3 years ago

Cannot render type haxe.io.Encoding into a TypeScript declaration (TODO?)

` @:expose

class Person {

public var name:String;
public function new(name:String) {

    this.name=name;
}

public function say(to:String) {

   var b= Bytes.alloc(10);
    trace('from haxe'+b);

}

} `

sonygod commented 3 years ago

oh,this is only warning .instead of error.

elsassph commented 3 years ago

Yes not all types of abstract types can be converted to typescript. Maybe this one should be doable, hence the TODO.