Notes from @RyanCavanaugh
Node unflagging --experimental-strip-types
nodejs/typescript#17
- Removes types
- Doesn't do downleveling or e.g.
enum syntax
- Covered by
--experimental-transform-types
- Requires no commandline flag
- Node.js docs cover recommended tsconfig settings
- We don't have any flag to cover the "no enum" restriction though
- 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?
- Excited!
Notes from @RyanCavanaugh
Node unflagging
--experimental-strip-typesnodejs/typescript#17
enumsyntax--experimental-transform-typesconst x = require('foo')in TS?