SubscribeOptions
type SubscribeOptions<TFilter> = { abortSignal?: AbortSignal; filter?: z.infer<TFilter>;};Defined in: core/src/event/event.registry.ts:15
How a subscriber narrows what it receives, and how long it stays subscribed.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
TFilter extends z.ZodType |
z.ZodType |
Properties
Section titled “Properties”abortSignal?
Section titled “abortSignal?”optional abortSignal?: AbortSignal;Defined in: core/src/event/event.registry.ts:22
filter?
Section titled “filter?”optional filter?: z.infer<TFilter>;Defined in: core/src/event/event.registry.ts:21
Only deliver occurrences the event’s check accepts for this value. Omit it
to receive every occurrence — no filter means no filtering, and check is
not consulted at all.