Skip to content

Commit 038dbd8

Browse files
fix(overmind): fix ResolveState derived typing
1 parent 03085ce commit 038dbd8

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
@@ -154,7 +154,7 @@ export interface Events {
154154
export type ResolveState<State extends IState | null> = State extends undefined
155155
? {}
156156
: {
157-
[P in keyof State]: State[P] extends IDerive<IConfiguration, IState, any>
157+
[P in keyof State]: State[P] extends (parent: ResolveState<IState>, root: any) => any
158158
? ReturnType<State[P]>
159159
: State[P] extends Array<any>
160160
? State[P]

0 commit comments

Comments
 (0)