UNPKG

@joshfarrant/shortcuts-js

Version:
22 lines (21 loc) 664 B
import Variable from '../interfaces/Variable'; import WFWorkflowAction from '../interfaces/WF/WFWorkflowAction'; /** * @action Add to Variable * @section Actions > Scripting > Variables * @icon Variable * * Appends this action's input to the specified variable, creating the variable if it does not exist. This allows you to make a variable hold multiple items. * * ```js * // Append the input to the variable named 'My Var' * addToVariable({ * variable: variable('My Var'), * }); * ``` */ declare const addToVariable: ({ variable, }: { /** The variable to add to */ variable: Variable; }) => WFWorkflowAction; export default addToVariable;