API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeSceneRegistryShape
Structural constraint for an `ApplicationOptions.scenes` registry: every value must be a SceneRegistration. A mapped-type constraint, not `Record<string, SceneRegistration<AnySceneConstructor>>` - `Record<K, V>` requires an index signature to structurally match, which a plain `interface GameScenes { title: typeof TitleScene; ... }` does not have (a `type` alias with the identical shape happens to satisfy it, an `interface` does not - confirmed against this project's TypeScript version, `--strict`: "Index signature for type 'string' is missing"). The public API must not depend on which of the two a caller wrote; a mapped-type constraint accepts both.
import { SceneRegistryShape } from '@codexo/exojs'Structural constraint for an `ApplicationOptions.scenes` registry: every value must be a SceneRegistration. A mapped-type constraint, not `Record<string, SceneRegistration<AnySceneConstructor>>` - `Record<K, V>` requires an index signature to structurally match, which a plain `interface GameScenes { title: typeof TitleScene; ... }` does not have (a `type` alias with the identical shape happens to satisfy it, an `interface` does not - confirmed against this project's TypeScript version, `--strict`: "Index signature for type 'string' is missing"). The public API must not depend on which of the two a caller wrote; a mapped-type constraint accepts both.
mapped