Skip to content

provideInjectable

provideInjectable<T>(target): FactoryProvider<T, DepsMap>

Defined in: packages/di-craft/src/core/annotation/annotation.ts:91

Creates a factory provider from a class marked with @Injectable.

The returned provider is a normal di-craft factory provider, so scopes, optional dependencies, disposal hooks, overrides, and cycle detection behave the same as with provideFactory.

T

InjectableClass<T>

FactoryProvider<T, DepsMap>