Skip to content

Commit 84650d7

Browse files
fix(overmind): fix typing
1 parent 9990fc4 commit 84650d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node_modules/overmind/src/internalTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type RehydrateClasses<T extends IState> = Pick<{
2222
T[P] extends { [key: string]: { toJSON: () => infer U } } ? (data: U) => T[P][0] :
2323
T[P] extends IState ? RehydrateClasses<T[P]> :
2424
never
25-
},{ [Key in keyof T]: T[Key] extends { toJSON: () => any } ? Key : never }[keyof T]>
25+
},{ [Key in keyof T]: T[Key] extends { toJSON: () => any } | Array<{ toJSON: () => any }> | { [key: string]: { toJSON: () => any } } ? Key : never }[keyof T]>
2626

2727
export type Options = {
2828
name?: string

0 commit comments

Comments
 (0)