There are such large projects, written directly in TypeScript and contains complex directory structure with a lot of files (hundreds). Such projects are compiled with option --declaration (which autogenerate *.d.ts for each *.ts files) and published directly to npm
Trying to convert typings of such project, I ran into a number of problems. Here are some of them:
- Need option to specify directory, from which
dukat will take *.d.ts files recursively and put result to destination directory keeping source directory structure. It could be resolved with some scripting, but...
- I've tried to specify 200+
*.d.ts files via $ dukat /path/to/**/*.d.ts. It takes > 1 hour to convert them (2-4 files per minute)
- Option
-b some_package_name gave no effect. Each file get same package name as it file name. It also don't work for single file. I expect that I can specify same package name for all files. Ability to specify @file:JsModule("path-to-module") would be also useful.
- Interface names like
'T$0' will be duplicated, because each file converted independently.
- If one
external class implement interface from another file, there are no override modifier, because each file converted independently.
- Notice: as mentioned here
package.json could contain types property or index.d.ts at the root of the package. It would be nice if also it were ability to analyze dependencies starting from index.d.ts before just converting all files from npm package.
Also mainly index.d.ts contains re-exports.
There are such large projects, written directly in TypeScript and contains complex directory structure with a lot of files (hundreds). Such projects are compiled with option
--declaration(which autogenerate*.d.tsfor each*.tsfiles) and published directly tonpmTrying to convert typings of such project, I ran into a number of problems. Here are some of them:
dukatwill take*.d.tsfiles recursively and put result to destination directory keeping source directory structure. It could be resolved with some scripting, but...*.d.tsfiles via$ dukat /path/to/**/*.d.ts. It takes> 1 hourto convert them (2-4 files per minute)-b some_package_namegave no effect. Each file get same package name as it file name. It also don't work for single file. I expect that I can specify same package name for all files. Ability to specify@file:JsModule("path-to-module")would be also useful.'T$0'will be duplicated, because each file converted independently.external classimplement interface from another file, there are nooverridemodifier, because each file converted independently.package.jsoncould containtypesproperty orindex.d.tsat the root of the package. It would be nice if also it were ability to analyze dependencies starting fromindex.d.tsbefore just converting all files from npm package.Also mainly
index.d.tscontains re-exports.