Skip to content

defineScenario

defineScenario<C>(def): ScenarioDef<C>

Defined in: tools/lab/src/grammar/scenario.ts:76

Declares one scenario. Export it from a *.scenario.ts file, either as the default export or as a named one — a file can hold several.

A scenario either mounts an existing Scene or builds one with setup. Declaring both, or neither, fails to compile.

C extends ControlSchema

ScenarioDef<C>

ScenarioDef<C>