Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

EmittedEvent

EmittedEvent<Handle> = Handle extends EventHandle<infer Record, EventDelivery, infer Scope> ? object & Scope extends World ? unknown : object : never

One emit as a reader receives it: its record, the tick the world that decided it emitted it at, and, for an event on an entity, that entity, null once it is destroyed or where this world never held it.

Type Parameter
Handle