UNPKG

@joshfarrant/shortcuts-js

Version:
23 lines 502 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @action Set Wi-Fi * @section Actions > Scripting > Device * @icon Wi-Fi * * Sets the device’s Wi-Fi to on or off. * * ```js * setWiFi({ * value: true, * }); * ``` */ const setWiFi = ({ value = true, }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.wifi.set', WFWorkflowActionParameters: { OnValue: value, }, }); exports.default = setWiFi; //# sourceMappingURL=setWiFi.js.map