Release 0.9.9

This commit is contained in:
Yanzhen Yu
2020-10-26 23:34:44 +08:00
parent c822e344a8
commit 476ae33d7a
2 changed files with 1 additions and 23 deletions

View File

@@ -1,22 +0,0 @@
import * as fsm from '@xstate/fsm';
declare module '@xstate/fsm' {
export namespace StateMachine {
interface Service<
TContext extends object,
TEvent extends fsm.EventObject,
TState extends fsm.Typestate<TContext> = any
> {
send: (event: TEvent | TEvent['type']) => void;
subscribe: (
listener: StateListener<State<TContext, TEvent, TState>>,
) => {
unsubscribe: () => void;
};
start: () => Service<TContext, TEvent, TState>;
stop: () => Service<TContext, TEvent, TState>;
readonly status: fsm.InterpreterStatus;
readonly state: State<TContext, TEvent, TState>;
}
}
}