Start a TypeScript Node project

Step 1 - Install TypeScript

Install TypeScript

pnpm add -D typescript

Init TypeScript project

pnpx/npx tsc --init

Step 2 - Using Google TypeScript Style to Lint and Correct Code

You can find more details at Google TypeScript Style.

Install gts

pnpm add -D gts

Init gts

pnpx/npx gts init

Step 3 - A list of useful TypeScript Libraries

  • tsx - TypeScript execution and REPL for node.js with source map and native ESM support. More details at here.