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.
Type Parameters
Section titled “Type Parameters”C extends ControlSchema
Parameters
Section titled “Parameters”ScenarioDef<C>
Returns
Section titled “Returns”ScenarioDef<C>