UNPKG

@joshfarrant/shortcuts-js

Version:
24 lines 674 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); /** * @action Get Latest Screenshots * @section Content Types > Photos & Video > Photos * @icon Photos * * Gets the most recent screenshots from the camera roll. * * ```js * getLatestScreenshots({ * count: 1, * }); * ``` */ const getLatestScreenshots = ({ count = 1, }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.getlastscreenshot', WFWorkflowActionParameters: { WFGetLatestPhotoCount: count, }, }); exports.default = utils_1.withActionOutput(getLatestScreenshots); //# sourceMappingURL=getLatestScreenshots.js.map