haxiomic / dts2hx

Converts TypeScript definition files (d.ts) to haxe externs (.hx) via the TypeScript compiler API
MIT License
134 stars 9 forks source link

Lose gen Type of Typescript #93

Open sonygod opened 3 years ago

sonygod commented 3 years ago

from web3.js

export class Eth {

    Contract: new (
        jsonInterface: AbiItem[] | AbiItem,
        address?: string,
        options?: ContractOptions
    ) => Contract;
    Iban: new (iban: string) => Iban;

and call

            var contact=new web3.eth.Contract(.....)

will gen

:jsRequire("web3-eth", "Eth") extern class Eth {

    var Contract : { };//it's seem wrong here 
    var Iban : { };//it's seem wrong here
}