intentful
Version:
Create Custom Skills with less headache
21 lines (20 loc) • 857 B
TypeScript
import { Gesture, GestureModel, GestureProps } from './gesture';
import { LabeledRequestHandler } from '../../skill';
import { Command, CommandModel, CommandProps } from '../commands';
export interface DoublePressGestureModel extends DoublePressGestureProps, GestureModel {
}
export interface DoublePressGestureProps extends GestureProps {
/**
* Commands to execute on double press
*/
onDoublePress?: Command<CommandModel, CommandProps>[];
/**
* Commands to execute on single press
*/
onSinglePress?: Command<CommandModel, CommandProps>[];
}
export declare class DoublePressGesture extends Gesture<DoublePressGestureModel, DoublePressGestureProps> {
constructor(props: DoublePressGestureProps);
componentSpecificModel(): DoublePressGestureModel;
componentSpecificRequestHandlers(): LabeledRequestHandler[];
}