@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
25 lines • 689 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @action Get Dictionary Value
* @section Actions > Scripting > Dictionaries
* @icon Scripting
*
* Gets the value for the specified key in the dictionary passed into the action.
*
* ```js
* getDictionaryValue({
* get: 'Value',
* key: 'My Key',
* });
* ```
*/
const getDictionaryValue = ({ key = '', get = 'Value', }) => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.getvalueforkey',
WFWorkflowActionParameters: {
WFDictionaryKey: key,
WFGetDictionaryValueType: get,
},
});
exports.default = getDictionaryValue;
//# sourceMappingURL=getDictionaryValue.js.map