A strongly-typed key that identifies a service in the container.
Tokens are created with createToken and carry the service type as a phantom parameter, so container.resolve(RPC_TOKEN) always returns SolanaRpc — no casts needed.
container.resolve(RPC_TOKEN)
SolanaRpc
1.2.0
The service type this token resolves to.
Readonly
Internal
phantom brand — never set at runtime.
phantom type carrier — never set at runtime.
Human-readable debug name.
A strongly-typed key that identifies a service in the container.
Tokens are created with createToken and carry the service type as a phantom parameter, so
container.resolve(RPC_TOKEN)always returnsSolanaRpc— no casts needed.Since
1.2.0