We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a1789 commit bc848b4Copy full SHA for bc848b4
packages/node_modules/overmind/src/internalTypes.ts
@@ -153,14 +153,14 @@ export interface Events {
153
154
type Derived = (parent: any, config: any) => any
155
156
-export type ResolveState<State extends IState> = State extends undefined
+export type ResolveState<State extends IState | null> = State extends undefined
157
? {}
158
: {
159
[P in keyof State]: State[P] extends Derived
160
? ReturnType<State[P]>
161
: State[P] extends Array<any>
162
? State[P]
163
- : State[P] extends IState
+ : State[P] extends IState | null
164
? ResolveState<State[P]>
165
: State[P]
166
}
0 commit comments