intentful
Version:
Create Custom Skills with less headache
20 lines (19 loc) • 576 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TapGesture = void 0;
const gesture_1 = require("./gesture");
const helpers_1 = require("../interfaces/helpers");
class TapGesture extends gesture_1.Gesture {
constructor(props) {
super('Tap', props);
}
componentSpecificModel() {
return {
onTap: this.props.onTap
};
}
componentSpecificRequestHandlers() {
return [...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onTap)];
}
}
exports.TapGesture = TapGesture;