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()?
optionalfromPayload(data):Notification|Promise<Notification>
Parameters
data
Record<string, unknown>
Returns
Notification | Promise<Notification>