AboutSupportDeveloper GuideVersion 20.0.5

Type alias ActionDeclaration<T, E>

ActionDeclaration<T, E>: NotificationActionResult

Denotes a field as being an action. Defining this field (with a non-undefined value) will result in actions being raised and sent back to the source application when the corresponding event happens.

For example, providing a value for the onClick field of ButtonOptions will result in a NotificationActionEvent|notification-action event being fired when that button is clicked.

The `NotificationActionResult returned back to an application is static and must be defined at the point where the notification is created.

Type Parameters

  • T extends never

  • E extends never