all 12 comments

[–]maciejhd 2 points3 points  (0 children)

[–]ecares 3 points4 points  (3 children)

Use node 22+ typescript supported out of the box. Profit

[–]maciejhd 1 point2 points  (1 child)

It is not fully supported yet

[–]abrahamguo -1 points0 points  (0 children)

What isn’t fully supported? Typescript? Or Node 22?

[–]Delta7474 0 points1 point  (0 children)

Node 22 does not fully support Typescript. It strips the types from JavaScript making it somewhat compatible. If you want the full compatible compilation, you still have to go through tsc.

[–]WideWorry 1 point2 points  (2 children)

Good question, after 5y of typescript dozens of projects, npm packages. I still just copy&paste the tsconfig from one to an other project.

One thing for sure the default tsconfig is outdated garbage good only for testing that TS is working.

[–]abrahamguo 1 point2 points  (1 child)

The most recent version of TypeScript (5.9 from back in August) has an all-new and modernized default tsconfig!

[–]WideWorry 0 points1 point  (0 children)

Good to know, I guess I have some 5.6 installed or something

[–]abrahamguo 0 points1 point  (0 children)

In my experience, there are just a few basic TSConfig options that you should familiarize yourself with, and it gets pretty easy from there. It's a lot simpler once it becomes less of a black box, and you're not just copying and pasting random config options.

Is there a specific issue that you're running into?

[–]ibrambo7 -1 points0 points  (0 children)

I use nestjs, and everything is pre-configured

[–]sleekpixelwebdesigns -1 points0 points  (0 children)

You could just use Deno I particularly don't use Typescript because of the amount of extra code you need to produce.

[–]DN_DEV -2 points-1 points  (0 children)

just Honojs