3 ms·
Typescript doesn’t really do code generation, it transpiles via pure type erasure unless you are targeting an older JS runtime.
by seanmcdirmid 7y ago
Typescript doesn’t really do code generation, it transpiles via pure type erasure unless you are targeting an older JS runtime.
- pjmlp 7y agoWhich is what almost everyone does, because we don't control what browser customers use.
- seanmcdirmid 7y agoYes, sort of. I don't bother with it since I just develop demos. Anyways, it doesn't really matter that much given source line annotations. I wish TypeScript went with some more aggressive sugar so we could have nice things like operator overloading.