▲ | 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. | |||||||||||||||||
|