Skip to content

EventSource

Defined in: EventToken.ts:50

Something that dispatches typed events to subscribers: an Entity, whose events also bubble to its scene, or a StateMachine, whose events stay on the machine. Component.listen subscribes to either and unsubscribes when the component is removed.

on<T>(token, handler): () => void

Defined in: EventToken.ts:51

T

EventToken<T>

(data) => void

() => void

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.