dts2hx icon indicating copy to clipboard operation
dts2hx copied to clipboard

Lose gen Type of Typescript

Open sonygod opened this issue 4 years ago • 0 comments

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
}

sonygod avatar Jul 21 '21 12:07 sonygod