Skip to content

basalt / notifications/src / channel

Function: channel() ​

> channel(name, send): NotificationChannel

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

Inline helper for custom channels: channel('sms', async (r, m) => …).

Parameters ​

name ​

string

send ​

(recipient, message, info) => Promise<void>

Returns ​

NotificationChannel

Released under the MIT License.