DI Bag API / index / Token
Interface: Token<TokenSymbol extends symbol, Service>
Defined in: tokens.ts:22
An immutable typed-token handle pairing a canonical symbol with an invariant service contract. Create one with DiBag.createToken(key).forService<Service>().
See
Extends
Type Parameters
| Type Parameter | Description |
|---|---|
TokenSymbol | The unique symbol that is this token's runtime identity. |
Service | The service type that bindings must produce and that resolution returns. |
Properties
symbol
ts
readonly symbol: TokenSymbol;Defined in: tokens.ts:25