Skip to content

Commit

Permalink
Use Record type
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Feb 12, 2021
1 parent 553f306 commit 109e77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export type DeepPartial<T> = {
[K in keyof T]?: T[K] extends any[]
? T[K]
: T extends object
: T extends Record<PropertyKey, unknown>
? DeepPartial<T[K]>
: T[K];
};
Expand Down

0 comments on commit 109e77f

Please sign in to comment.