Skip to content

EventToken

Defined in: EventToken.ts:5

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:6

string

Unique string identifier for this event.

EventToken<T>

readonly _type: T

Defined in: EventToken.ts:12

Phantom field to preserve the generic type.


readonly name: string

Defined in: EventToken.ts:8

Unique string identifier for this event.