Beignet API reference
Preparing search index...
@beignet/core
notifications
Notifications
Interface Notifications<Ctx>
Context-bound notification helper factory.
interface
Notifications
<
Ctx
>
{
defineNotification
<
Name
extends
string
,
Payload
extends
StandardSchema
>
(
name
:
Name
,
options
:
DefineNotificationOptions
<
Payload
,
Ctx
>
,
)
:
NotificationDef
<
Name
,
Payload
,
Ctx
>
;
}
Type Parameters
Ctx
Index
Methods
define
Notification
Methods
define
Notification
defineNotification
<
Name
extends
string
,
Payload
extends
StandardSchema
>
(
name
:
Name
,
options
:
DefineNotificationOptions
<
Payload
,
Ctx
>
,
)
:
NotificationDef
<
Name
,
Payload
,
Ctx
>
Define a notification with the bound context type.
Type Parameters
Name
extends
string
Payload
extends
StandardSchema
Parameters
name
:
Name
options
:
DefineNotificationOptions
<
Payload
,
Ctx
>
Returns
NotificationDef
<
Name
,
Payload
,
Ctx
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
define
Notification
Beignet API reference
Loading...
Context-bound notification helper factory.