EventToken
Defined in: EventToken.ts:7
A phantom-typed token for entity events. Similar to ServiceKey, but used for entity-level event pub/sub.
Type Parameters
Section titled “Type Parameters”T = void
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new EventToken<
T>(name):EventToken<T>
Defined in: EventToken.ts:8
Parameters
Section titled “Parameters”string
String identifier for this event. Dispatch is by name, not by token.
Returns
Section titled “Returns”EventToken<T>
Properties
Section titled “Properties”
readonly_type:T
Defined in: EventToken.ts:14
Phantom field to preserve the generic type.
readonlyname: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.