UNPKG

@joshfarrant/shortcuts-js

Version:
26 lines 727 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); /** * @action Set Dictionary Value * @section Actions > Scripting > Dictionaries * @icon Scripting * * Sets a value in the dictionary passed into the action. * * ```js * setDictionaryValue({ * key: 'testKey', * value: 'testValue', * }); * ``` */ const setDictionaryValue = ({ key = '', value = '', }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.setvalueforkey', WFWorkflowActionParameters: { WFDictionaryKey: key, WFDictionaryValue: value, }, }); exports.default = utils_1.withActionOutput(setDictionaryValue); //# sourceMappingURL=setDictionaryValue.js.map