Skip to content

Commit 349811d

Browse files
fix(overmind): fix typing issue with derived
1 parent 80890de commit 349811d

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
@@ -155,7 +155,7 @@ export type ResolveState<State extends IState | null | undefined> = State extend
155155
? State
156156
: {
157157
[P in keyof State]: State[P] extends (parent: ResolveState<IState>, root: any) => any
158-
? ReturnType<State[P]>
158+
? State[P] extends () => any ? State[P] : ReturnType<State[P]>
159159
: State[P] extends Array<any>
160160
? State[P]
161161
: State[P] extends IState | null

0 commit comments

Comments
 (0)