Last active
October 1, 2020 22:08
-
-
Save lstanard/9f2afd1fd477cd3e75946172bb2f09e9 to your computer and use it in GitHub Desktop.
TypeScript: Combination pick and make all propertites required
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
type PickAndRequireAll<T, K extends keyof T> = { | |
[P in K]-?: T[P]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment