@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
21 lines (20 loc) • 518 B
TypeScript
import Variable from '../interfaces/Variable';
import WFWorkflowAction from '../interfaces/WF/WFWorkflowAction';
/**
* @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'),
* });
* ```
*/
declare const setVariable: ({ variable, }: {
/** The variable to set */
variable: Variable;
}) => WFWorkflowAction;
export default setVariable;