Skip to content

Instantly share code, notes, and snippets.

@sbatial
Created May 24, 2023 09:53
Show Gist options
  • Save sbatial/3fe2cd37596d775548916dfa861b875a to your computer and use it in GitHub Desktop.
Save sbatial/3fe2cd37596d775548916dfa861b875a to your computer and use it in GitHub Desktop.
Utility types based off of Partial
type PartialNull<T> = { [P in keyof T]: T[P] | null }
type PartialBoolean<T> = { [P in keyof T]: T[P] | boolean }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment