UNPKG

intentful

Version:

Create Custom Skills with less headache

23 lines (22 loc) 1.08 kB
import { LabeledRequestHandler } from '../../../../skill/models'; import { Calculable } from '../../../../types'; import { Command, CommandModel, CommandProps } from '../../../commands'; import { Color, Dimension } from '../../../interfaces'; import { APLBaseComponentModel, APLBaseComponentProps, APLComponent } from '../../component'; export interface AlexaSwitchModel extends APLBaseComponentModel { activeColor?: Calculable<Color>; primaryAction?: Command<CommandModel, CommandProps>; switchHeight?: Calculable<Dimension>; switchWidth?: Calculable<Dimension>; } export interface AlexaSwitchProps extends APLBaseComponentProps { activeColor?: Calculable<Color>; primaryAction?: Command<CommandModel, CommandProps>; switchHeight?: Calculable<Dimension>; switchWidth?: Calculable<Dimension>; } export declare class AlexaSwitch extends APLComponent<AlexaSwitchModel, AlexaSwitchProps> { constructor(props: AlexaSwitchProps); componentSpecificModel(): AlexaSwitchModel; componentSpecificRequestHandlers(): LabeledRequestHandler[]; }