@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
30 lines • 655 B
JavaScript
;
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