UNPKG

@joshfarrant/shortcuts-js

Version:
23 lines 552 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @action Set Brightness * @section Actions > Scripting > Device * @icon Brightness * * Sets the device brightness. * * ```js * setBrightness({ * brightness: 75, * }); * ``` */ const setBrightness = ({ brightness = 100, }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.setbrightness', WFWorkflowActionParameters: { WFBrightness: brightness / 100, }, }); exports.default = setBrightness; //# sourceMappingURL=setBrightness.js.map