UNPKG

387 BTypeScriptView Raw
1import { Command } from '../command';
2/**
3 * Interface for a class that controls and/or watches the behavior of commands.
4 *
5 * This may include logging their output, creating interactions between them, or changing when they
6 * actually finish.
7 */
8export interface FlowController {
9 handle(commands: Command[]): {
10 commands: Command[];
11 onFinish?: () => void;
12 };
13}