Skip to content

basalt / notifications/src / DigestItem

Interface: DigestItem ​

Defined in: notifications/src/digest.ts:13

Digest / batching — instead of sending every notification immediately, collect() renders and holds it; a scheduled flush() groups each recipient's pending items per channel and sends them as one batch (a daily summary, say). The app decides how to render the combined message.

Properties ​

at ​

> at: number

Defined in: notifications/src/digest.ts:18


channel ​

> channel: string

Defined in: notifications/src/digest.ts:15


message ​

> message: unknown

Defined in: notifications/src/digest.ts:17


notification ​

> notification: string

Defined in: notifications/src/digest.ts:16


recipientId ​

> recipientId: string

Defined in: notifications/src/digest.ts:14

Released under the MIT License.