Skip to content

Token · Core API

type Token<T> = object;

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

Type Parameter

T

readonly id: symbol;

Runtime identity of the token.

Tokens with the same name still have different identities.


readonly name: string;

Human-readable name used in error messages and diagnostics.