Skip to content

Commit d7af448

Browse files
committed
fix(overmind): fix ResolveState to avoid circular definition of TDerive
1 parent ab491f5 commit d7af448

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/node_modules/overmind/src/internalTypes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ export type TBaseContext<Config extends Configuration> = Config['effects'] & {
115115
execution: any
116116
}
117117

118+
type Derived = (parent: any, config: any) => any
119+
118120
export type ResolveState<State extends object> = {
119-
[P in keyof State]: State[P] extends TDerive<any, any, any>
121+
[P in keyof State]: State[P] extends Derived
120122
? ReturnType<State[P]>
121123
: State[P] extends Array<any>
122124
? State[P]

0 commit comments

Comments
 (0)