Skip to content

Commit 91cdeba

Browse files
fix(overmind): fix typing of machine type
1 parent ea68e1b commit 91cdeba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node_modules/overmind/src/statemachine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface MachineMethods<States extends TState, Events extends TEvents, B
2828
): Statemachine<States, Events, BaseState>
2929
}
3030

31-
export type Statemachine<States extends TState, Events extends TEvents, BaseState extends IState> = States & BaseState & MachineMethods<States, Events, BaseState>
31+
export type Statemachine<States extends TState, Events extends TEvents, BaseState extends IState = never> = States & BaseState & MachineMethods<States, Events, BaseState>
3232

3333
const INITIAL_STATE = Symbol('INITIAL_STATE')
3434
const TRANSITIONS = Symbol('TRANSITIONS')

0 commit comments

Comments
 (0)