Open
Description
Notes from @RyanCavanaugh
Node unflagging --experimental-strip-types
- Removes types
- Doesn't do downleveling or e.g.
enum
syntax- Covered by
--experimental-transform-types
- Covered by
- Requires no commandline flag
- Node.js docs cover recommended tsconfig settings
- We don't have any flag to cover the "no enum" restriction though
- We should have this flag
- See Tsconfig option to disallow features requiring transformations which are not supported by Node.js' --strip-types #59601
- We should name it
- Is this just a temporary flag if nodejs et al will support these features anyway?
- Many people want this for purity reasons (complimentary)
- Should imply verbatimModuleSyntax and isolatedModules but does not enforce that
- TODO: Name this (extremely difficult), implement it (easy, probably)
- Should we support
const x = require('foo')
in TS?- Probably (eventually)
- Excited!