Why in the TypeScript built-in utility type Omit
, which is defined as:
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
does K
extend keyof any
rather than keyof T
?
Why in the TypeScript built-in utility type Omit
, which is defined as:
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
does K
extend keyof any
rather than keyof T
?