Skip to content

Instantly share code, notes, and snippets.

@wkrueger
Created March 21, 2017 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wkrueger/31b11932fef85d5e2968b515a78b51e9 to your computer and use it in GitHub Desktop.
Save wkrueger/31b11932fef85d5e2968b515a78b51e9 to your computer and use it in GitHub Desktop.
poor man omit
//@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