Skip to main content
Version: 2.0.x

FactoryProvider

@agros/tools / FactoryProvider

Interface: FactoryProvider<T>

Type parameters​

NameType
Tany

Table of contents​

Properties​

Properties​

inject​

• Optional inject: Type<any>[]

Defined in​

packages/agros-tools/src/types.ts:55


provide​

• provide: ProviderToken

Defined in​

packages/agros-tools/src/types.ts:50


useFactory​

• useFactory: (...args: any[]) => T | Promise<T>

Type declaration​

▸ (...args): T | Promise<T>

Factory function that returns an instance of the provider to be injected.

Parameters​
NameType
...argsany[]
Returns​

T | Promise<T>

Defined in​

packages/agros-tools/src/types.ts:54