Created
March 21, 2017 23:37
-
-
Save wkrueger/31b11932fef85d5e2968b515a78b51e9 to your computer and use it in GitHub Desktop.
poor man omit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@niieani | |
type Omit<A, B extends keyof A> = A & { | |
[P in keyof A & B]: void | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment