Typescript does not copy d.ts files to build
You are right – declaration:true implies that only for each given .ts file tsc generates and copies a corresponding .d.ts output file to the build directory (in addition to .js and .map if applicable). So tsc will not copy your custom types.d.ts file to the output directory. Basically .d.ts files are seen as untouchable input … Read more