@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
27 lines (26 loc) • 906 B
TypeScript
import WFSerialization from '../interfaces/WF/WFSerialization';
import WFWorkflowAction from '../interfaces/WF/WFWorkflowAction';
/**
* @action Show Alert
* @section Actions > Scripting > Notification
* @icon Scripting
*
* Displays an alert with a title, a message, and two buttons. If the user selects the OK button, the shortcut continues. The cancel button stops the shortcut.
*
* ```js
* showAlert({
* title: 'Alert',
* message: 'Do you want to continue?',
* showCancelButton: true,
* });
* ```
*/
declare const showAlert: ({ title, message, showCancelButton, }: {
/** The title of the alert */
title?: string | WFSerialization | undefined;
/** The message of the alert */
message?: string | WFSerialization | undefined;
/** Whether a cancel button should be shown */
showCancelButton?: boolean | undefined;
}) => WFWorkflowAction;
export default showAlert;