Skip to content

Commit 0c9f2c2

Browse files
authored
fix: Consider Set type in the PartialDeep (#850)
1 parent b32e909 commit 0c9f2c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/typeHelpers/partialDeep.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
* Brought the simplified idea from https://github.com/sindresorhus/type-fest/blob/main/source/partial-deep.d.ts
1111
* */
1212
export type PartialDeep<T> = T extends object
13-
? T extends (...args: any[]) => any
13+
? T extends Set<unknown>
14+
? T
15+
: T extends (...args: any[]) => any
1416
? T
1517
: {
1618
[P in keyof T]?: PartialDeep<T[P]>;

0 commit comments

Comments
 (0)