fix(core): FactoryProvider's deps property should be optional
This commit is contained in:
parent
5d294624fa
commit
eb7d8c702c
|
@ -277,7 +277,7 @@ export interface FactoryProvider {
|
||||||
* A list of `token`s which need to be resolved by the injector. The list of values is than
|
* A list of `token`s which need to be resolved by the injector. The list of values is than
|
||||||
* used as arguments to the `useFactory` function.
|
* used as arguments to the `useFactory` function.
|
||||||
*/
|
*/
|
||||||
deps: any[];
|
deps?: any[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If true, than injector returns an array of instances. This is useful to allow multiple
|
* If true, than injector returns an array of instances. This is useful to allow multiple
|
||||||
|
|
|
@ -554,7 +554,7 @@ export declare class ExpressionChangedAfterItHasBeenCheckedException extends Bas
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export interface FactoryProvider {
|
export interface FactoryProvider {
|
||||||
deps: any[];
|
deps?: any[];
|
||||||
multi?: boolean;
|
multi?: boolean;
|
||||||
provide: any;
|
provide: any;
|
||||||
useFactory: Function;
|
useFactory: Function;
|
||||||
|
|
Loading…
Reference in New Issue