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 22c22ed commit 4ddf1a4Copy full SHA for 4ddf1a4
packages/node_modules/overmind/src/statemachine.ts
@@ -14,7 +14,7 @@ export type Statemachine<States extends TStates> = States & {
14
reset: () => void
15
whenTransitioned: (state: States["state"]) => Promise<void>
16
} & {
17
- [State in States["state"]]: <O>(entry?: (current: States extends { state: State } ? States : never) => O, exit?: (current: States extends { state: State } ? States : never) => void) => O
+ [State in States["state"]]: <O>(entry?: (current: Statemachine<States> & (States extends { state: State } ? States : never)) => O, exit?: (current: Statemachine<States> & (States extends { state: State } ? States : never)) => void) => O
18
}
19
20
const CURRENT_EXIT = Symbol('CURRENT_EXIT')
0 commit comments