dts2hx icon indicating copy to clipboard operation
dts2hx copied to clipboard

Converts TypeScript definition files (d.ts) to haxe externs (.hx) via the TypeScript compiler API

Results 42 dts2hx issues
Sort by recently updated
recently updated
newest added

here is some test class Engine.d.ts ```ts export declare class Engine { get canvas(): Canvas; } ``` WebGLEngine.d.ts ```ts export declare class WebGLEngine extends Engine { get canvas(): WebCanvas; }...

waiting-on-haxe-compiler-changes

Question: how to use dts2hx work with lix ? dts2hx will gen haxelib into project root .but lix need another path projectroot/haxe_libraries/three.hxml is there any plans support that?

enhancement

Is dts2hx support folder batch gen? current I have to use a command-line like these, but this cmd is too long to excute. Is dts2hx support folder batch gen? ```haxe...

ts.AnyOf issue. some gen class have some fields like ```haxe var geometry : ts.AnyOf2; geometry .AProperty=1;//current will throw error. geometry.BProperty=2;//current will throw error. ``` //is possible to do something like...

enhancement

See https://github.com/HaxeFoundation/haxe/pull/10454

enhancement

Some class was wrong name 'Default' `npm install @ethereumjs/tx` path `ethereumjs-common\1,5,2\ethereumjs_common\**Default.hx**` was wrong , should be **Common.hx** typescript `export default class Common extends EventEmitter {`

bug

Hello, I've just tried using dts2hx on Chart.js and have received this error: ``` Error: Internal error: Reached type-depth limit, stopping further type conversions. This indicates unbound recursive type conversion...

I use dts2hx for [libp2p ](https://github.com/libp2p/js-libp2p) node_modules\libp2p-interfaces\dist\src\transport\types.d.ts ```ts export interface TransportFactory { new(upgrader: Upgrader): Transport; } ``` will gen wrong code here ```haxe package libp2p.dist.src.transport_manager; typedef TransportFactory = libp2p_interfaces.dist.src.transport.types.TransportFactory; ```...

current I found https://github.com/dmitryhryppa/vue.hx and what I want to ask is dts2hx support vue now?

enhancement

from web3.js ```haxe export class Eth { Contract: new ( jsonInterface: AbiItem[] | AbiItem, address?: string, options?: ContractOptions ) => Contract; Iban: new (iban: string) => Iban; ``` and call...