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.