UNPKG

intentful

Version:

Create Custom Skills with less headache

24 lines (23 loc) 808 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DoublePressGesture = void 0; const gesture_1 = require("./gesture"); const helpers_1 = require("../interfaces/helpers"); class DoublePressGesture extends gesture_1.Gesture { constructor(props) { super('DoublePress', props); } componentSpecificModel() { return { onDoublePress: this.props.onDoublePress, onSinglePress: this.props.onSinglePress }; } componentSpecificRequestHandlers() { return [ ...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onDoublePress), ...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onSinglePress) ]; } } exports.DoublePressGesture = DoublePressGesture;