#how to setup TS with node.js

4 messages · Page 1 of 1 (latest)

hasty falcon
#

Before you ask i don't wanna use deno

stone coral
#
  1. create a JS project npm init
  2. add typescript as a dev dependency npm i -D typescript
  3. set up the typescript project npx tsc --init
  4. configure the ts project accordingly
  5. write TS code
  6. compile your code npx tsc
  7. your the emitted JS code node .
#

also Google

#

@hasty falcon