File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ P extends `${infer RecordKeyInPath}.${infer SubPath}`
119119 ? IsNever < Key > extends true
120120 ? ObjectT
121121 : Key extends PropertyKey
122- ? Simplify < Omit < ObjectT , Key > >
122+ ? Simplify < Omit < ObjectT , Key > > // `Simplify` to prevent `Omit` from appearing in the resulting type
123123 : ObjectT
124124 : ObjectT ;
125125
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export type RequiredDeep<T> = T extends BuiltIns
6666 ? T
6767 : ( ( ...arguments_ : Parameters < T > ) => ReturnType < T > ) & RequiredObjectDeep < T >
6868 : T extends object
69- ? Simplify < RequiredObjectDeep < T > >
69+ ? Simplify < RequiredObjectDeep < T > > // `Simplify` to prevent `RequiredObjectDeep` from appearing in the resulting type
7070 : unknown ;
7171
7272type RequiredObjectDeep < ObjectType extends object > = {
You can’t perform that action at this time.
0 commit comments