Skip to content

Commit 827be34

Browse files
committed
Simplify UnwrapPartial
1 parent 60bfd3f commit 827be34

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

source/unwrap-partial.d.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ Note: If the provided type isn’t of `Partial<T>`, `UnwrapPartial` has no effec
2323
*/
2424
export type UnwrapPartial<PartialObjectType> =
2525
PartialObjectType extends Partial<infer ObjectType>
26-
? (
27-
Partial<ObjectType> extends PartialObjectType
28-
? ObjectType
29-
: PartialObjectType
30-
)
26+
? ObjectType
3127
: PartialObjectType;
3228

3329
export {};

0 commit comments

Comments
 (0)