Skip to content

ServiceKey

Defined in: EngineContext.ts:16

A typed key for service registration and resolution.

T

new ServiceKey<T>(id, options?): ServiceKey<T>

Defined in: EngineContext.ts:20

string

Unique string identifier for this service.

ServiceKeyOptions

ServiceKey<T>

readonly _type: T

Defined in: EngineContext.ts:29

Phantom field to preserve the generic type.


readonly id: string

Defined in: EngineContext.ts:22

Unique string identifier for this service.


readonly scope: ServiceScope

Defined in: EngineContext.ts:18

Declared scope (engine or scene). Defaults to "engine".