Skip to content

DI Bag API / index / ProviderFactory

Type Alias: ProviderFactory<R extends ProviderOrFactory> ​

ts
type ProviderFactory<R extends ProviderOrFactory> = R extends infer T & {} ? FactoryOf<T> : never;

Defined in: provider.ts:72

Extract the callable factory contract retained by a provider.

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.