강의

멘토링

커뮤니티

Inflearn Community Q&A

91gjstr5074's profile image
91gjstr5074

asked

All About TypeScript

undefined형식 에러

Written on

·

390

0

 undefined를 변수로 받지를 못합니다. 왜그런걸까요..??

typescriptDenonestjs

Answer 1

1

yongsoocho님의 프로필 이미지
yongsoocho
Instructor

tsconfig.json > compilerOptions 에서

strictNullChecks 옵션을 true로 하면 undefined가 될 가능성이 있는 것들을 사전에 차단하므로 에러가 납니다 :)

WJJJJJJ님의 프로필 이미지
WJJJJJJ
Questioner

감사합니다:)

91gjstr5074's profile image
91gjstr5074

asked

Ask a question