TypeScript Omit<T, K> 정리
1. Omit이란?Omit는 기존 타입(T)에서 특정 속성(K)을 제외한 새로운 타입을 만들 때 사용한다.T: 원본 타입K: 제외하고 싶은 속성의 key(문자열, 유니언 가능)Omit은 TypeScript에 기본 내장되어 있으며, 실제로는 Mapped Types와 keyof, Exclude, Pick을 조합해서 동작한다.2. 기본 사용법interface User { id: number; name: string; email: string; password: string;}// password 필드를 제외한 User 타입type UserWithoutPassword = Omit;const user: UserWithoutPassword = { id: 1, name: "홍길동", email: "hon..