@egjs/flicking
Version:
Everyday 30 million people experience. It's reliable, flexible and extendable carousel.
10 lines (9 loc) • 364 B
TypeScript
import State from "../states/State";
import { AxesEventType, ValueOf, FlickingContext, StateType } from "../types";
declare class StateMachine {
private state;
fire(eventType: ValueOf<AxesEventType>, e: any, context: FlickingContext): void;
getState(): State;
transitTo: (nextStateType: ValueOf<StateType>) => State;
}
export default StateMachine;