Skip to content

Instantly share code, notes, and snippets.

@exuanbo
Last active March 26, 2021 22:25
Show Gist options
  • Save exuanbo/c0bd93a302f8036fdc8f7ee33e5b949f to your computer and use it in GitHub Desktop.
Save exuanbo/c0bd93a302f8036fdc8f7ee33e5b949f to your computer and use it in GitHub Desktop.
type PartiallyRequired<T, K extends keyof T> = Omit<T, K> & Pick<Required<T>, K>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment