type Spread<T> = { [P in keyof T]:T[P] } type SpreadReadOnly<T> = { readonly [P in keyof T]:T[P] } type SpreadOptional<T> = { [P in keyof T]?:T[P] }
아니면 특정 Type의 key를 알고 있을때 아래와 같이 하면 됨
type CertainType = Korea['language'] // korean