We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80890de commit 349811dCopy full SHA for 349811d
packages/node_modules/overmind/src/internalTypes.ts
@@ -155,7 +155,7 @@ export type ResolveState<State extends IState | null | undefined> = State extend
155
? State
156
: {
157
[P in keyof State]: State[P] extends (parent: ResolveState<IState>, root: any) => any
158
- ? ReturnType<State[P]>
+ ? State[P] extends () => any ? State[P] : ReturnType<State[P]>
159
: State[P] extends Array<any>
160
? State[P]
161
: State[P] extends IState | null
0 commit comments