TypeScript (2) 썸네일형 리스트형 TypeScript TypeScript rest 파라미터 & destructuringrest 파라미터 : 파라미터 부분에 ...변수명을 붙이면 된다. TypeScript 설치 셋팅, 타입 지정, Narrowing & Assertion, type alias & readonly TypeScript 설치 셋팅이미 있는 React프로젝트에 설치 방법 : npm install --save typescript @types/node @types/react @types/react-dom @types/jest React 프로젝트를 새로 만들어 설치 방법 :npx create-react-app my-app --template typescript 그냥 vscode에서 typescript 실행 방법 : npm install -g typescripttsconfig.json파일(ts -> js컴파일시 옵션 설정 가능) 생성 후{"compilerOptions":{"target": "es5","module": "commonjs",}} 그 후 ts파일을 js로 인식하게 하려면 terminal창에 tsc .. 이전 1 다음