In case you haven't heard about it yet: There's a very exciting effort to add a new flag to TypeScript: https://github.com/microsoft/TypeScript/pull/53463. The flag will be called "--isolatedDeclarations" and will allow external tools such as esbuild to emit ".d.ts" files without needing to implement a type system. This is similar to "--isolatedModules", which allows esbuild to safely convert ".ts" to ".js" without using "tsc".

hachyderm.io ↗

Sign in to like, save or reply.