Remix.run Logo
EE84M3i 4 hours ago

> ts/js is were ts is just js with types. You can comment out the types and it just runs.

Is this true in the general case? I thought there were typescript features that didn't have direct JavaScript alternatives, for example enums.

paulddraper 4 hours ago | parent [-]

Enums and namespaces are the only runtime features of TypeScript.

So, yes, you can't just strip types, but it's close.

EE84M3i 3 hours ago | parent [-]

Is there a comprehensive list of such incompatibilities documented somewhere?

judofyr 39 minutes ago | parent [-]

https://www.typescriptlang.org/tsconfig/#isolatedModules