UNPKG

intentful

Version:

Create Custom Skills with less headache

21 lines (20 loc) 629 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OpenURLCommand = void 0; const command_1 = require("./command"); const helpers_1 = require("../interfaces/helpers"); class OpenURLCommand extends command_1.Command { constructor(props) { super('OpenURL', props); } commandSpecificModel() { return { source: this.props.source, onFail: this.props.onFail }; } commandSpecificRequestHandlers() { return (0, helpers_1.convertCommandListToRequestHandlers)(this.props.onFail); } } exports.OpenURLCommand = OpenURLCommand;