DI Bag API / index / BindingSnapshot
Interface: BindingSnapshot<M = Readonly<{ }>, A extends readonly unknown[] = readonly []>
Defined in: inspection.ts:52
One binding of a container's graph, described without acquiring it.
See
Extends
RegistrationSnapshot<M,A>
Type Parameters
| Type Parameter | Description |
|---|---|
M | - |
A | - |
Properties
acquisitions
readonly acquisitions: readonly AcquisitionSnapshot<A>[];Defined in: inspection.ts:45
Point-in-time attempts; inspection does not retain failed-attempt history.
Inherited from
RegistrationSnapshot.acquisitions
aliasTarget?
readonly aliasTarget?: {
readonly bindingId: symbol;
readonly bindingLabel: string;
};Defined in: inspection.ts:41
Direct lexical target; acquisition snapshots follow the canonical target.
bindingId
readonly bindingId: symbol;bindingLabel
readonly bindingLabel: string;Inherited from
RegistrationSnapshot.aliasTarget
bindingId
readonly bindingId: symbol;Defined in: inspection.ts:37
Stable identity for the canonical graph binding.
Inherited from
RegistrationSnapshot.bindingId
bindingLabel
readonly bindingLabel: string;Defined in: inspection.ts:39
Human-readable binding label.
Inherited from
RegistrationSnapshot.bindingLabel
factoryReturnKind
readonly factoryReturnKind: FactoryReturnKind;Defined in: inspection.ts:56
isOwnedByContainer
readonly isOwnedByContainer: boolean;Defined in: inspection.ts:58
True when some stage of the provider accepts ownership through a disposer.
lifetime
readonly lifetime: Lifetime;Defined in: inspection.ts:55
registrationMetadata
readonly registrationMetadata: Readonly<M>;Defined in: inspection.ts:43
Static registration metadata; application-owned payload values retain their identity.
Inherited from
RegistrationSnapshot.registrationMetadata
serviceKeys
readonly serviceKeys: readonly (string | symbol)[];Defined in: inspection.ts:54
Public names or token symbols that select this binding, in service key order; empty for a private module binding.
tokenDependencies
readonly tokenDependencies: readonly {
readonly tokenSymbol: symbol;
readonly dependencyKind: 'required' | 'optional' | 'lazy';
}[];Defined in: inspection.ts:60
Typed-token dependencies declared positionally through service tokens, collection tokens, optional, or lazy references.