Skip to content

DI Bag API / index / ProviderGraphContract

Type Alias: ProviderGraphContract<R> ​

ts
type ProviderGraphContract<R> = ProviderBase extends R ? OpaqueGraph : R extends infer T & {} ? GraphOf<T> : OpaqueGraph;

Defined in: provider.ts:118

Extract the retained typed-token and lifetime graph contract.

Type Parameters ​

Type ParameterDescription
R-

See ​

https://dany-fedorov.github.io/di-bag/guides/api-reference.html#provider-and-module-projections

Ordinary services. Checked composition. Explicit ownership.