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.
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”__type?
Section titled “__type?”
readonlyoptional__type?:T
Defined in: packages/di-craft/src/core/token/types.ts:14
readonlyid: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.
readonlyname:string
Defined in: packages/di-craft/src/core/token/types.ts:12
Human-readable name used in error messages and diagnostics.