UNPKG

lexer-state

Version:

Lightweight state machine library to define and manage state transition declaratively

6 lines (5 loc) 221 B
import { IMachine } from '../machine'; export declare const useLexerState: <Events, T extends IMachine<any, any, any> = any>(machine: T) => { currentState: string; dispatchEvent(e: Events[keyof Events]): void; };