UNPKG

intentful

Version:

Create Custom Skills with less headache

25 lines (24 loc) 597 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.APLAComponent = void 0; class APLAComponent { constructor(type, props) { this.convertBaseComponentPropsToModel = () => { return { type: this.type }; }; this.type = type; this.props = props; } toJSON() { return this.model(); } model() { return { ...this.convertBaseComponentPropsToModel(), ...this.componentSpecificModel() }; } } exports.APLAComponent = APLAComponent;