Beignet API reference
Preparing search index...
@beignet/core
notifications
parseNotificationPayload
Function parseNotificationPayload
parseNotificationPayload
<
N
extends
NotificationPayloadDef
<
string
,
StandardSchema
>
,
>
(
notification
:
N
,
payload
:
unknown
,
)
:
Promise
<
InferNotificationPayload
<
N
>
>
Validate and parse a notification payload with the notification's Standard Schema.
Type Parameters
N
extends
NotificationPayloadDef
<
string
,
StandardSchema
>
Parameters
notification
:
N
payload
:
unknown
Returns
Promise
<
InferNotificationPayload
<
N
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Beignet API reference
Loading...
Validate and parse a notification payload with the notification's Standard Schema.