DI Bag API / index / GraphSnapshot
Interface: GraphSnapshot
Defined in: inspection.ts:81
A frozen description of every binding a container can resolve, plus the edges observed so far. Named dependencies read from a factory's object parameter are not knowable until the factory runs; observedEdges records them after acquisition. Use the static graph tool for declared edges.
See
Properties
bindings
readonly bindings: readonly BindingSnapshot<object, readonly unknown[]>[];Defined in: inspection.ts:86
Public bindings in service key order, then contributions in group order, then remaining private bindings.
containerId
readonly containerId: symbol;Defined in: inspection.ts:82
contributions
readonly contributions: readonly {
readonly collectionTokenSymbol: symbol;
readonly bindingIds: readonly symbol[];
}[];Defined in: inspection.ts:87
moduleInstallations
readonly moduleInstallations: readonly ModuleInstallationSnapshot[];Defined in: inspection.ts:84
Module occurrences in installation order, with each parent preceding its contiguous descendants.
observedEdges
readonly observedEdges: readonly {
readonly consumerBindingId: symbol;
readonly dependencyBindingId: symbol;
}[];Defined in: inspection.ts:89
Consumer-to-dependency edges recorded by acquisitions in this container's ownership family.