3 ms·
TypeScript, but the only supported module system is ESM (including extension being required like it is in the browser), there is no interface and enum (types an
by tomashubelbauer 4y ago
TypeScript, but the only supported module system is ESM (including extension being required like it is in the browser), there is no interface and enum (types and type unions are used instead), there are nameof and typeof operators in the language and there is syntax for getting a runtime value representing a type (for example string union into a string array) or even straight up option/syntax to selectively (up until absolutely) enforce type shapes at runtime.
- hyperswine 4y agoabsolutely