Skip to Content
이펙티브 타입스크립트
book

이펙티브 타입스크립트

by Dan Vanderkam, Won Ho Jang
November 2021
Intermediate to advanced
364 pages
9h 52m
Korean
Insight
Content preview from 이펙티브 타입스크립트
TypeScript
13
아이템 3 코드 생성과 타입이 관계없음을 이해하기
󻭣󻩌
··
타입스크립트 컴파일러는 언어의 핵심 요소에 영향을 미치는 몇 가지 설정
을 포함하고 있습니다.
··
타입스크립트 설정은 커맨드 라인을 이용하기보다는
tsconfig.json
을 사용하
는 것이 좋습니다.
··
자바스크립트 프로젝트를 타입스크립트로 전환하는 게 아니라면
noImplicit
Any
를 설정하는 것이 좋습니다.
··
“
undefined
는 객체가 아닙니다” 같은 런타임 오류를 방지하기 위해
strict
NullChecks
를 설정하는 것이 좋습니다.
··
타입스크립트에서 엄격한 체크를 하고 싶다면
strict
설정을 고려해야 합
니다.
󻨓󻱃󼘫 󼐣󺦫󽴔󻖬󻘀󺇋󽴔󼖏󻱔󻱃󽴔󺇏󺆓󻪕󻰛󻰓󽴔󻱃󼩃󼨧󺋿
큰 그림에서 보면, 타입스크립트 컴파일러는 두 가지 역할을 수행합니다.
··
최신 타입스크립트/자바스크립트를 브라우저에서 동작할 수 있도록 구버전
의 자바스크립트로 트랜스파일(transpile)
합니다.
··
코드의 타입 오류를 체크합니다.
여기서 놀라운 점은 이 두 가지가 서로 완벽히 독립적이라는 것입니다. 다시
말해서, 타입스크립트가 자바스크립트로 변환될 때 코드 내의 타입에는 영향
을 주지 않습니다. 또한 그 자바스크립트의 실행 시점에도 타입은 영향을 미치
지 않습니다.
타입스크립트 컴파일러가 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

러닝 타입스크립트

러닝 타입스크립트

조시 골드버그
고성능 파이썬(2판)

고성능 파이썬(2판)

오현석, 미샤 고렐릭, 이안 오스발트
타입스크립트 프로그래밍

타입스크립트 프로그래밍

Boris Czerny, U Jung Eun

Publisher Resources

ISBN: 9788966263134