typescript 설치 및 환경설정

    typescript 설치 및 환경설정

    타입스크립트 설치하기 npm install -g typescript 버전확인하기 tsc -v 패키지를 생성하기위해 아래 명령어를 사용한다. package.json 과 tsconfig.json이 생성된다. npm init -y tsc -- init express 설치한다. npm install express 데브 의존성, 노드몬 설치 npm i -D typescript ts-node nodemon @types/node @types/express 아래 사이트에서 @types 를 검색해서 사용하면 된다 https://www.typescriptlang.org/dt/search?search= Search for typed packages Find npm packages that have type declarati..