Created
September 29, 2023 02:32
-
-
Save vvenv/6dced9c85b88645fb515a5641ae70c46 to your computer and use it in GitHub Desktop.
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
export type DeepPartial<T> = T extends Object | |
? { | |
[P in keyof T]?: DeepPartial<T[P]>; | |
} | |
: T; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment