top | item 42630790

Node.js enables TypeScript handling by default

17 points| Shakahs | 1 year ago |nodejs.org

7 comments

order

Sonata|1 year ago

Great to see this moving forward.

It does seem a bit of a mixed message to enable this by default while still saying the functionality is experimental. I fear many people will take this as a signal to start using the feature in production, then find a later Node.js update breaks things if the behaviour changes.

Shakahs|1 year ago

Note: This is type stripping only, no transpilation / code generation is done.

satanacchio|1 year ago

Hi I'm the author of this feature, I'll answer to questions.

richajak|1 year ago

Can we have short explanation on the features supported? It is not clear on the doc which ones launched now? waiting for JS Decorator feature?

Does it mean that any type mentioned in https://www.typescriptlang.org/docs/handbook/2/everyday-type... is supported? Any exception to this list? or additional?

For feature depends on JS Decorator, that involves transformation, what are those? I saw enums and namespaces. Any list?

Thanks, I am not so familiar with Typescript, though I saw some of the libraries I use are sprinkled with TS.