Re:Finally, a guide for Node.js and TypeScript and ESM that ...
by w3news on Tuesday November 21, 2023 @07:35AM
(#38362789)
Why not using Node how it is designed, than ESM works great.
For type checking on development, you can do it with ESLint and JSDoc in Typescript modus.
You have the same type checking like you have in ts files.
You can even import types from typescript files, like .d.ts
Best of both worlds, no transformation of the code, and on development you have some help from Typescript.
For type checking on development, you can do it with ESLint and JSDoc in Typescript modus. You have the same type checking like you have in ts files. You can even import types from typescript files, like .d.ts
Best of both worlds, no transformation of the code, and on development you have some help from Typescript.