Skip to content

DI Bag API / index / RegistrationSnapshot

Interface: RegistrationSnapshot<M = Readonly<{ }>, A extends readonly unknown[] = readonly []> ​

Defined in: inspection.ts:35

A frozen binding description and copied acquisition state returned by container inspection.

See ​

https://dany-fedorov.github.io/di-bag/guides/tutorial.html#attach-metadata-and-inspect-without-resolving

Extended by ​

Type Parameters ​

Type ParameterDescription
M-
A-

Properties ​

acquisitions ​

ts
readonly acquisitions: readonly AcquisitionSnapshot<A>[];

Defined in: inspection.ts:45

Point-in-time attempts; inspection does not retain failed-attempt history.


aliasTarget? ​

ts
readonly aliasTarget?: {
    readonly bindingId: symbol;
    readonly bindingLabel: string;
};

Defined in: inspection.ts:41

Direct lexical target; acquisition snapshots follow the canonical target.

bindingId ​

ts
readonly bindingId: symbol;

bindingLabel ​

ts
readonly bindingLabel: string;

bindingId ​

ts
readonly bindingId: symbol;

Defined in: inspection.ts:37

Stable identity for the canonical graph binding.


bindingLabel ​

ts
readonly bindingLabel: string;

Defined in: inspection.ts:39

Human-readable binding label.


registrationMetadata ​

ts
readonly registrationMetadata: Readonly<M>;

Defined in: inspection.ts:43

Static registration metadata; application-owned payload values retain their identity.

Ordinary services. Checked composition. Explicit ownership.