Skip to content

basalt / core/src / Token

Interface: Token<T> ​

Defined in: core/src/token.ts:5

Typed dependency-injection token. The phantom parameter __type carries the service type at compile time — no reflect-metadata.

Type Parameters ​

T ​

T

Properties ​

__type? ​

> readonly optional __type?: T

Defined in: core/src/token.ts:9

phantom type — never exists at runtime


description ​

> readonly description: string

Defined in: core/src/token.ts:7


key ​

> readonly key: symbol

Defined in: core/src/token.ts:6

Released under the MIT License.