UNPKG

intentful

Version:

Create Custom Skills with less headache

18 lines (17 loc) 757 B
import { Command, CommandModel, CommandProps } from './command'; import { LabeledRequestHandler } from '../../skill/models'; export interface SelectCommandModel extends CommandModel { commands: Command<CommandModel, CommandProps>[]; data?: unknown[]; otherwise?: Command<CommandModel, CommandProps>[]; } export interface SelectCommandProps extends CommandProps { commands: Command<CommandModel, CommandProps>[]; data?: unknown[]; otherwise?: Command<CommandModel, CommandProps>[]; } export declare class SelectCommand extends Command<SelectCommandModel, SelectCommandProps> { constructor(props: SelectCommandProps); commandSpecificModel(): SelectCommandModel; commandSpecificRequestHandlers(): LabeledRequestHandler[]; }