UNPKG

@joshfarrant/shortcuts-js

Version:
15 lines 559 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const uuidv4 = require("uuid/v4"); const Variable_1 = require("../interfaces/Variable"); /** * Creates a Magic Variable to be used as action output. * * ```js * const magic = actionOutput('My Magic Variable'); * ``` */ exports.actionOutput = ( /** The custom name of the Magic Variable */ name) => new Variable_1.default(Object.assign(Object.assign({}, (name && { OutputName: name })), { OutputUUID: uuidv4(), Type: 'ActionOutput' })); //# sourceMappingURL=actionOutput.js.map