Event
type Event<TPayload, TFilter> = { check: (context) => boolean; description: string; filter: TFilter; id: string; name: string; payload: TPayload;};Defined in: core/src/event/event.types.ts:20
A registered kind of event: its payload schema, a filter schema, and a
check predicate deciding whether an occurrence matches a subscriber’s filter.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
TPayload extends z.ZodType |
z.ZodType |
TFilter extends z.ZodType |
z.ZodType |
Properties
Section titled “Properties”check: (context) => boolean;Defined in: core/src/event/event.types.ts:26
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context |
EventCheckContext<TPayload, TFilter> |
Returns
Section titled “Returns”boolean
description
Section titled “description”description: string;Defined in: core/src/event/event.types.ts:23
filter
Section titled “filter”filter: TFilter;Defined in: core/src/event/event.types.ts:25
id: string;Defined in: core/src/event/event.types.ts:21
name: string;Defined in: core/src/event/event.types.ts:22
payload
Section titled “payload”payload: TPayload;Defined in: core/src/event/event.types.ts:24