Skip to main content

Interface: EventContract<B>

Defined in: packages/contracts/src/registry.ts:91

An event contract: published, any subscribers, no reply.

Type Parameters​

B​

B extends TSchema = TSchema

Properties​

body​

readonly body: B

Defined in: packages/contracts/src/registry.ts:95

Schema of the event body.


kind​

readonly kind: "event"

Defined in: packages/contracts/src/registry.ts:93

Tells an event contract from a request one; it matches the subject's prefix.