Skip to content

EventToken

Defined in: EventToken.ts:7

A phantom-typed token for entity events. Similar to ServiceKey, but used for entity-level event pub/sub.

T = void

new EventToken<T>(name): EventToken<T>

Defined in: EventToken.ts:8

string

String identifier for this event. Dispatch is by name, not by token.

EventToken<T>

readonly _type: T

Defined in: EventToken.ts:14

Phantom field to preserve the generic type.


readonly name: string

Defined in: EventToken.ts:10

String identifier for this event. Dispatch is by name, not by token.

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.