Created
May 24, 2023 09:53
-
-
Save sbatial/3fe2cd37596d775548916dfa861b875a to your computer and use it in GitHub Desktop.
Utility types based off of Partial
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 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