Skip to main content
zerotal

Documentation


Documentation / @zerotal/notifications / NotificationClass

Type Alias: NotificationClass

NotificationClass = (...args) => Notification & object

Defined in: notifications/src/NotificationRegistry.ts:7

A notification class, optionally with a custom fromPayload reviver. The reviver may be async — rebuilding often means loading a record back.

Type Declaration

fromPayload()?

optional fromPayload(data): Notification | Promise<Notification>

Parameters

data

Record<string, unknown>

Returns

Notification | Promise<Notification>