4 ms·
It sounds like you want “deno compile” (https://deno.land/manual@v1.25.4/tools/compiler https://deno.land/manual@v1.25.4/tools/compiler) plus “no-explicit-any”
by tlrobinson 4y ago
It sounds like you want “deno compile” (https://deno.land/manual@v1.25.4/tools/compiler https://deno.land/manual@v1.25.4/tools/compiler) plus “no-explicit-any” eslint rule (https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-explicit-any.md https://github.com/typescript-eslint/typescript-eslint/blob/...).
Or are you wanting a language with different semantics that could be compiled to actual machine code?
- yencabulator 4y agoThat still allows `x as string` and many other traps. Typescript just isn't type-safe, and this has bitten me so many times in real world projects with strict mode and all. The best thing I can say about Typescript is that it's an improvement over Javascript.