intentful
Version:
Create Custom Skills with less headache
25 lines (24 loc) • 871 B
TypeScript
import { GestureModel, GestureProps, Gesture } from './gesture';
import { LabeledRequestHandler } from '../../skill';
import { Command, CommandModel, CommandProps } from '../commands';
/**
* This interface was referenced by `AplSchema`'s JSON-Schema
* via the `definition` "Tap".
*/
export interface TapGestureModel extends TapGestureProps, GestureModel {
}
/**
* This interface was referenced by `AplSchema`'s JSON-Schema
* via the `definition` "Tap".
*/
export interface TapGestureProps extends GestureProps {
/**
* Commands to execute when a tap occurs
*/
onTap?: Command<CommandModel, CommandProps>[];
}
export declare class TapGesture extends Gesture<TapGestureModel, TapGestureProps> {
constructor(props: TapGestureProps);
componentSpecificModel(): TapGestureModel;
componentSpecificRequestHandlers(): LabeledRequestHandler[];
}