UNPKG

intentful

Version:

Create Custom Skills with less headache

20 lines (19 loc) 795 B
import { Command, CommandModel, CommandProps } from './command'; import { LabeledRequestHandler } from '../../skill/models'; import { Calculable } from '../../types'; import { ComponentState } from '../interfaces'; export interface SetStateCommandModel extends CommandModel { componentId?: string; state: Calculable<ComponentState>; value: Calculable<boolean>; } export interface SetStateCommandProps extends CommandProps { componentId?: string; state: Calculable<ComponentState>; value: Calculable<boolean>; } export declare class SetStateCommand extends Command<SetStateCommandModel, SetStateCommandProps> { constructor(props: SetStateCommandProps); commandSpecificModel(): SetStateCommandModel; commandSpecificRequestHandlers(): LabeledRequestHandler[]; }