intentful
Version:
Create Custom Skills with less headache
23 lines (22 loc) • 505 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Gesture = void 0;
class Gesture {
constructor(type, props) {
this.props = props;
this.type = type;
}
model() {
return {
type: this.type,
...this.componentSpecificModel()
};
}
toJSON() {
return this.model();
}
getRequestHandlers() {
return [...this.componentSpecificRequestHandlers()];
}
}
exports.Gesture = Gesture;