basalt / notifications/src / NotificationDefinition
Interface: NotificationDefinition<T>
Defined in: notifications/src/definition.ts:31
Type Parameters
T
T = void
Properties
channels
> channels: string[] | ((recipient, data) => string[])
Defined in: notifications/src/definition.ts:35
Channels for a delivery — static list or per-recipient function.
name
> readonly name: string
Defined in: notifications/src/definition.ts:32
schema?
> readonly optional schema?: NotificationSchema<T>
Defined in: notifications/src/definition.ts:33
via
> via: Record<string, (data, recipient) => unknown>
Defined in: notifications/src/definition.ts:37
Renderers per channel — each returns that channel's message shape.