Skip to content

ServiceKeyOptions

Defined in: EngineContext.ts:17

Options passed to new ServiceKey(id, options).

optional missingHint?: string

Defined in: EngineContext.ts:29

Appended to the error thrown when the key resolves nowhere. Name what provides the service, e.g. the plugin to install.


optional scope?: ServiceScope

Defined in: EngineContext.ts:24

Declared scope. "scene" keys are expected to be registered per-scene via a beforeEnter hook; Component.use will check scene scope first and warn if it falls back to engine scope. Default: "engine".

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.