(no title)
jesus-was-here | 1 year ago
>TypeScript does not modify this code when it compiles to JavaScript
TypeScript does not modify any code which is valid JavaScript. Your idea of adding some sort of "debug build" to TypeScript would never be performed by `tsc`, but perhaps by bundlers, etc.
You might want to look up libraries like zod, or even better, Effect: https://effect.website/
danvk|1 year ago
jesus-was-here|1 year ago
[deleted]
CodeAndCuffs|1 year ago
Effect is huge, and does seemingly everything, but it probably does the specific thing you want to do now, with the ability to extend to the other stuff as you need/want
jesus-was-here|1 year ago
[deleted]
likeclockwork|1 year ago
It makes Typescript a descriptive, rather than expressive, language with weak semantics.
jesus-was-here|1 year ago
[deleted]