Files
30-seconds-of-code/node_modules/xstate/lib/scxml.d.ts
2019-08-20 15:52:05 +02:00

9 lines
388 B
TypeScript

import { EventObject } from './types';
import { StateNode } from './index';
export interface ScxmlToMachineOptions {
evalCond: (expr: string, extState?: object) => // tslint:disable-next-line:ban-types
((extState: any, event: EventObject) => boolean) | Function;
delimiter?: string;
}
export declare function toMachine(xml: string, options: ScxmlToMachineOptions): StateNode;