Closed sonygod closed 2 years ago
Works fine for me but I don’t have your tsconfig.json, could you send that over too?
actually,this file was generated by WASM-PACK tool and default have no tsconfig.json, this files was copy from other
project.
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"baseUrl": ".",
"noEmit": true,
"noUnusedParameters": true,
"strictNullChecks": true
},
"include": ["pkg","src"],
"exclude": ["node_modules"]
}
Works for me testing on macOS, no errors and the externs look correct
I'll test on windows later in the week
Update: I can reproduce the failure on window
Should be fixed in 0.19.2, let me know :) b367ece7f9d3bc7971d5629654f8b15328fcad78
support rust's wasm-pack *.d.ts?
I try to use this cmd
npx dts2hx pkg/index.d.ts --tsconfig .\tsconfig.json
**> Converting module pkg/index
here is the test file.