3 ms·
Doesn't typescript already work with Deno and Bun? How do they do it?
by rererereferred 2y ago
Doesn't typescript already work with Deno and Bun? How do they do it?
- msoad 2y agoby compiling it, which opens a huge can of worms. Deno relies on tsconfig.json configurations for instance
- WorldMaker 2y agoDeno bundles a full LSP that will do compilation using its (modified) tsconfig.json-like configurations, but Deno's type remover at runtime is fairly dumb/simple and I believe a simple Rust implementation. Part of what you can't configure in Deno's tsconfig.json-like configuration files are things that keep the type remover simple (such as turning enums back on).