Skip to content

Instantly share code, notes, and snippets.

@lstanard
Last active October 1, 2020 22:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lstanard/9f2afd1fd477cd3e75946172bb2f09e9 to your computer and use it in GitHub Desktop.
TypeScript: Combination pick and make all propertites required
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