[TypeScript] 고급 타입 활용법: 조건부 타입, 제네릭 심화와 Exclude/Extract 활용
·
Development/React
📘 2025.03.22 TypeScript 정리@2025.03.29 곽지혜📑 주제조건부 타입 / 맵드 타입제네릭 심화 (제약 조건, 기본값, 다중 파라미터)타입 조작: Exclude, Extract, NonNullable, Partial 등📂 파일 구조 (예제 위치)src/├── 01_conditional_types.ts├── 02_mapped_types.ts├── 03_generics_advanced.ts├── 04_utility_types.ts├── 05_examples_comparison.ts 1. 조건부 타입 (Conditional Types)📁 예제: 01_conditional_types.tsT extends U ? X : Y 조건에 따라 타입을 분기할 수 있습니다.T가 U를 확장(ext..
[TS] VSCode에서 yarn berry + TypeScript 셋팅하기
·
Development
Mac OS를 기준으로 하고 있습니다.VSCode먼저, VSCode가 설치되어있어야한다. 설치되지 않았을 경우, 공식 홈페이지에서 환경에 맞는 버전을 다운로드한다. Visual Studio Code - Code Editing. RedefinedVisual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.code.visualstudio.comNode.jsnode는 버전 관리 용이를 ..