TS - tsconfig.json 설정

정호재·2023년 4월 5일
0

Ts

목록 보기
2/5

기본적 compilerOptions

target

: TS 파일이 변환할 JS 버전 ( ESMAScript 버전 )

module

: 다른 모듈에서 내보낸 것을 바인딩 하기 위한 import 문법의 구현 방법 설정

noImplicitAny

: any 타입이 의도하지 않게 나타날 경우 제한

stricNullChecks

: null 값에 대한 엄격한 검사를 통한 null 및 undifined 조작 제한

removeComments

: 주석 삭제

preserveConstEnums

: 비슷한 종류의 상수 값을 묶는 용도인 enums 선언을 삭제할지 여부

"compilerOptions": {
    	"target": "es5", 
        "module": "commonjs",
        "noImplicitAny": true,
        "removeComments": true,
        "preserveConstEnums": true,
        "sourceMap": true,
  		"strictNullChecks": true
    }
profile
공부 일기장

0개의 댓글