Skip to content

Handlers

type Handlers = { [T in EventType]?: (event: EventOf<T>, cursor: string) => unknown };

Handlers for wardrik.listen, by event type. Each gets the event and the cursor after it.