3 ms·
I think it's the right solution, though I get that it confuses people. Given that the compiler only erases static type annotations, it should not touch the impo
by nikeee 4y ago
I think it's the right solution, though I get that it confuses people.
Given that the compiler only erases static type annotations, it should not touch the imports.
> entire language is incompatible with a JS interpreter
If this proposal will ever be accepted, TS will be (in large parts) valid JS:
https://github.com/tc39/proposal-type-annotations https://github.com/tc39/proposal-type-annotations
- icholy 4y agoTell that to enums