Skip to content

Token

Token<T> = object

Defined in: packages/di-craft/src/core/token/types.ts:2

A unique, typed key used to register and resolve a dependency.

T

readonly optional __type?: T

Defined in: packages/di-craft/src/core/token/types.ts:14


readonly id: symbol

Defined in: packages/di-craft/src/core/token/types.ts:8

Runtime identity of the token.

Tokens with the same name still have different identities.


readonly name: string

Defined in: packages/di-craft/src/core/token/types.ts:12

Human-readable name used in error messages and diagnostics.