4 ms·
> You can't run it with JS runtimes, and it has features JS will never have. It's definitely transpiled. AFAIK TypeScript has a grand total of one non-typesyst
by paavohtl 8y ago
> You can't run it with JS runtimes, and it has features JS will never have. It's definitely transpiled.
AFAIK TypeScript has a grand total of one non-typesystem related feature which doesn't already exist in JS (or as an ES proposal) - enums[1]. All the other parts of TypeScript can be transpiled just like Flow - by stripping away the type annotations.
[1] https://www.typescriptlang.org/docs/handbook/enums.html https://www.typescriptlang.org/docs/handbook/enums.html