🏷️Typescript

The Basics

Installation and run .ts

  • npm i -D typescript - install typescript in project

  • ./node_modules/typescript/bin/tsc - create tsconfigjson and compile typescript file

  • npm install -D ts-node and run ts-node hello.ts

  • node lib/hello.ts

Last updated