@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
23 lines • 607 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @action Set Variable
* @section Actions > Scripting > Variables
* @icon Variable
*
* Sets the value of the specified variable to the input of this action.
*
* ```js
* setVariable({
* variable: variable('My Variable'),
* });
* ```
*/
const setVariable = ({ variable, }) => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.setvariable',
WFWorkflowActionParameters: {
WFVariableName: variable.Value.VariableName,
},
});
exports.default = setVariable;
//# sourceMappingURL=setVariable.js.map