UNPKG

@joshfarrant/shortcuts-js

Version:
26 lines (25 loc) 687 B
import WFWorkflowAction from '../interfaces/WF/WFWorkflowAction'; /** * @action Show Notification * @section Actions > Scripting > Notification * @icon Notification * * Displays a local notification. * * ```js * showNotification({ * title: 'Hello, World!', * body: 'This is a test notification', * sound: true, * }); * ``` */ declare const showNotification: ({ title, body, sound, }: { /** Title for the notification */ title?: string | undefined; /** Body for the notification */ body?: string | undefined; /** Enable or disable sound for the notification */ sound?: boolean | undefined; }) => WFWorkflowAction; export default showNotification;