FactoryProvider
@agros/tools / FactoryProvider
Interface: FactoryProvider<T>
Type parameters
| Name | Type |
|---|---|
T | any |
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
| Name | Type |
|---|---|
...args | any[] |
Returns
T | Promise<T>