UNPKG

@joshfarrant/shortcuts-js

Version:
30 lines 655 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); /** * @action List * @section Actions > Scripting > Lists * @icon Scripting * * Allows you to specify a list of items to be passed to the next action. * * ```js * // Create a list * list({ * value: [ * 'a', * 'b', * 'c', * '123', * ], * }); * ``` */ const list = ({ value = [], }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.list', WFWorkflowActionParameters: { WFItems: [...value], }, }); exports.default = utils_1.withActionOutput(list); //# sourceMappingURL=list.js.map