4 ms·
support for typescript as long as you are only using it for type checking, not if you are also using features that are not supported in the javascript version y
by ofirg 2y ago
support for typescript as long as you are only using it for type checking, not if you are also using features that are not supported in the javascript version you are targeting.
- paulddraper 2y agoThat is what people use TypeScript for generally. If you need JS syntax features that Node.js doesn't support you can use tsc, babel, etc. Because obviously unsupported features are unsupported, whether JS or TS.
- flohofwoe 2y ago> not if you are also using features that are not supported in the javascript version you are targeting. reply This is only 'half-assed' anyway, TS will only emulate new language features on older JS target version, but not any Javascript runtime features (like new Object methods). For the latter you will still need a separate polyfill solution.