typescript / Field noteTypeScript 핵심 패턴 5가지Exhaustiveness Check, Branded Types, as const 등 TS 패턴 5개를 선정해보았습니다.2024년 5월 13일7분 읽기Contents011. Exhaustiveness Checking (모든 케이스 처리 강제하기)022. Branded Types (같은 타입, 다른 의미 구분하기)033. Discriminated Unions (구별된 유니온)044. as const (리터럴 추론)055. Type Predicates (06마치며Filed under#TypeScript#Core Pattern
독자의 메모
00 COMMENTS