Created
February 11, 2020 22:29
-
-
Save iansan5653/31f034e8c31064ffb3f62c8f85816da3 to your computer and use it in GitHub Desktop.
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
/** | |
* Stricter version of `Omit`: | |
* Construct a type with the properties of T except for those in type K. | |
*/ | |
export type OmitStrict<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment