mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
* Lift the requirement of the omitted keys being of string type * Remove unused Diff mapped type
This commit is contained in:
parent
87163dfcd6
commit
7c273912fd
@ -1,3 +1 @@
|
||||
export type Diff<T extends string, U extends string> = ({ [P in T]: P } &
|
||||
{ [P in U]: never } & { [x: string]: never })[T];
|
||||
export type Omit<T, K extends keyof T> = Pick<T, Diff<keyof T, K>>;
|
||||
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
||||
|
Loading…
Reference in New Issue
Block a user