DI Bag API / index / BindingSnapshot
Interface: BindingSnapshot<M = Readonly<{ }>, A extends readonly unknown[] = readonly []>
Defined in: inspection.ts:85
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:78
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:74
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:70
Stable identity for the canonical graph binding.
Inherited from
RegistrationSnapshot.bindingId
bindingLabel
readonly bindingLabel: string;Defined in: inspection.ts:72
Human-readable binding label.
Inherited from
RegistrationSnapshot.bindingLabel
factoryReturnKind
readonly factoryReturnKind: FactoryReturnKind;Defined in: inspection.ts:91
isOwnedByContainer
readonly isOwnedByContainer: boolean;Defined in: inspection.ts:93
True when some stage of the provider accepts ownership through a disposer.
lifetime
readonly lifetime: Lifetime;Defined in: inspection.ts:90
moduleInstallationId
readonly moduleInstallationId: symbol | undefined;Defined in: inspection.ts:87
Innermost module installation that introduced this binding; absent for host declarations and host replacements.
registrationMetadata
readonly registrationMetadata: Readonly<M>;Defined in: inspection.ts:76
Static registration metadata; application-owned payload values retain their identity.
Inherited from
RegistrationSnapshot.registrationMetadata
serviceKeys
readonly serviceKeys: readonly (string | symbol)[];Defined in: inspection.ts:89
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:95
Typed-token dependencies declared positionally through service tokens, collection tokens, optional, or lazy references.