intentful
Version:
Create Custom Skills with less headache
21 lines (20 loc) • 957 B
TypeScript
import { Command, CommandModel, CommandProps } from './command';
import { LabeledRequestHandler } from '../../skill/models';
import { Calculable } from '../../types';
export interface SequentialCommandModel extends CommandModel {
catch?: Command<CommandModel, CommandProps>[];
commands: Command<CommandModel, CommandProps>[];
repeatCount?: Calculable<number>;
finally?: Command<CommandModel, CommandProps>[];
}
export interface SequentialCommandProps extends CommandProps {
catch?: Command<CommandModel, CommandProps>[];
commands: Command<CommandModel, CommandProps>[];
repeatCount?: Calculable<number>;
finally?: Command<CommandModel, CommandProps>[];
}
export declare class SequentialCommand extends Command<SequentialCommandModel, SequentialCommandProps> {
constructor(props: SequentialCommandProps);
commandSpecificModel(): SequentialCommandModel;
commandSpecificRequestHandlers(): LabeledRequestHandler[];
}