File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/node_modules/overmind/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ export type NestedPartial<T> = T extends Function
1818
1919export type RehydrateClasses < T extends IState > = Pick < {
2020 [ P in keyof T ] : T [ P ] extends { toJSON : ( ) => infer U } ? ( data : U ) => T [ P ] :
21- T [ P ] extends Array < { toJSON : ( ) => infer U } > ? ( data : U ) => T [ P ] [ 0 ] :
22- T [ P ] extends { [ key : string ] : { toJSON : ( ) => infer U } } ? ( data : U ) => T [ P ] [ 0 ] :
21+ T [ P ] extends Array < { toJSON : ( ) => infer U } > ? ( data : U ) => T [ P ] [ keyof T [ P ] ] :
22+ T [ P ] extends { [ key : string ] : { toJSON : ( ) => infer U } } ? ( data : U ) => T [ P ] [ keyof T [ P ] ] :
2323 T [ P ] extends IState ? RehydrateClasses < T [ P ] > :
2424 never
2525} , { [ Key in keyof T ] : T [ Key ] extends { toJSON : ( ) => any } | Array < { toJSON : ( ) => any } > | { [ key : string ] : { toJSON : ( ) => any } } ? Key : never } [ keyof T ] >
You can’t perform that action at this time.
0 commit comments