News for hackers. Stuff that matters.
Re:TypeScript enums: use cases and alternatives by msoad on Monday January 20, 2025 @07:38AM (#42768078)
by compiling it, which opens a huge can of worms. Deno relies on tsconfig.json configurations for instance
Re:TypeScript enums: use cases and alternatives by WorldMaker on Monday January 20, 2025 @12:17PM (#42770809)
Deno 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).