File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ export type Nullable<T> = {
7
7
* (since JSON.stringify ignores undefined properties)
8
8
*/
9
9
export type AddUndefinedToPossiblyUndefinedPropertiesOfInterface < Base > = {
10
- [ K in keyof Base ] : Base [ K ] extends Exclude < Base [ K ] , undefined > ? Base [ K ] : Base [ K ] | undefined ;
10
+ [ K in keyof Base ] : Base [ K ] extends Exclude < Base [ K ] , undefined >
11
+ ? AddUndefinedToPossiblyUndefinedPropertiesOfInterface < Base [ K ] >
12
+ : AddUndefinedToPossiblyUndefinedPropertiesOfInterface < Base [ K ] > | undefined ;
11
13
} ;
12
14
13
15
export type StrictPartial < Base > = AddUndefinedToPossiblyUndefinedPropertiesOfInterface < Partial < Base > > ;
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ export type Nullable<T> = {
7
7
* (since JSON.stringify ignores undefined properties)
8
8
*/
9
9
export type AddUndefinedToPossiblyUndefinedPropertiesOfInterface < Base > = {
10
- [ K in keyof Base ] : Base [ K ] extends Exclude < Base [ K ] , undefined > ? Base [ K ] : Base [ K ] | undefined ;
10
+ [ K in keyof Base ] : Base [ K ] extends Exclude < Base [ K ] , undefined >
11
+ ? AddUndefinedToPossiblyUndefinedPropertiesOfInterface < Base [ K ] >
12
+ : AddUndefinedToPossiblyUndefinedPropertiesOfInterface < Base [ K ] > | undefined ;
11
13
} ;
12
14
13
15
export type StrictPartial < Base > = AddUndefinedToPossiblyUndefinedPropertiesOfInterface < Partial < Base > > ;
You can’t perform that action at this time.
0 commit comments