docutils-ts
Version:
Port of the Python Docutils library to TypeScript
13 lines (12 loc) • 499 B
TypeScript
import { Statefactory, StateInterface, StatemachineInterface, StateConstructor } from "./types.js";
declare class StateFactory implements Statefactory {
private stateClasses;
private args;
constructor(args?: {
stateClasses?: StateConstructor[];
});
createState(stateName: string, stateMachine?: StatemachineInterface): StateInterface;
getStateClasses(): StateConstructor[];
withStateClasses(stateClasses: StateConstructor[]): this;
}
export default StateFactory;