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

Hi @haxiomic, Could you point me to what might be wrong/missing for a successful conversion of the [redis node module](https://github.com/redis/node-redis)? After runing dts2hx on the latest version I get the...

jsxgraph 1.4.4 lib Error: [TypeScript 3.7] Cannot find name 'XXXXX' I try to convert jsxgraph lib ,got these error ```js > Error: [TypeScript 3.7] Cannot find name 'z'. (D:/projects/jsxgraph/node_modules/jsxgraph/distrib/index.d.ts:110:50) >...

I'm trying to use this with [antd](https://ant.design/) and get a barrage of errors but it starts with: ``` Duplicate identifier 'type'. (/Users/pinkboi/src/oea/node_modules/@ant-design/icons/lib/components/AntdIcon.d.ts:2:8) ``` And if you look where in the...

upgrade-ts-compiler

Was trying to convert https://github.com/discordjs/discord.js and I think it is using some ts4 features and resulted in a lot of errors: ``` > Error: Internal error: Reached type-depth limit, stopping...

enhancement
upgrade-ts-compiler

when converting aws-sdk, encountered something like this: https://github.com/aws/aws-sdk-js/blob/6e552e94b78fe3198ef5fb93d7f0e0ded6f4ffd9/clients/mediaconvert.d.ts#L2561

bug

Tweakpane defines a config type for many different classes, like: ```haxe interface Config extends ViewConfig { pickedColor: PickedColor; } ``` However, since these have the same name and end up...

bug

```haxe @:jsRequire("cheerio") extern class Cheerio { static var value(get, never) : cheerio.CheerioAPI; static inline function get_value():cheerio.CheerioAPI return cast Cheerio; } ```

Question about three.js es6 version hello ,after update three.js r138 , it seem all class write in es6 style. and try to use esbuild and got these error. Don't know...

enhancement
three.js

three.js 138 ```haxe import three.src.math.MathUtils; var x=180*MathUtils.DEG2RAD; trace(x); ``` after compile will get this error. ```js X [ERROR] Could not resolve "three/src/math/MathUtils" dist/main.js:64:39: 64 │ var three_src_math_MathUtils = require("three/src/math/MathUtils"); ╵...

bug
three.js

```haxe npm install web3 npx dts2hx web3 > Error: [TypeScript 3.7] Cannot find module 'net'. (C:/project/web3/node_modules/web3-core-helpers/types/index.d.ts:20:22) > Error: [TypeScript 3.7] Cannot find module 'http'. (C:/project/web3/node_modules/web3-core-helpers/types/index.d.ts:21:23) > Error: [TypeScript 3.7] Cannot...

bug