Guest User

Untitled

a guest
Apr 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. type Diff<T extends string, U extends string> = ({ [P in T]: P } & { [P in U]: never } & { [x: string]: never })[T];
  2.  
  3. type Omit<T, K extends keyof T> = Pick<T, Diff<keyof T, K>>;
Add Comment
Please, Sign In to add comment