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 ab491f5 commit d7af448Copy full SHA for d7af448
packages/node_modules/overmind/src/internalTypes.ts
@@ -115,8 +115,10 @@ export type TBaseContext<Config extends Configuration> = Config['effects'] & {
115
execution: any
116
}
117
118
+type Derived = (parent: any, config: any) => any
119
+
120
export type ResolveState<State extends object> = {
- [P in keyof State]: State[P] extends TDerive<any, any, any>
121
+ [P in keyof State]: State[P] extends Derived
122
? ReturnType<State[P]>
123
: State[P] extends Array<any>
124
? State[P]
0 commit comments