fix(core): FactoryProvider's deps property should be optional

This commit is contained in:
Igor Minar 2016-08-24 12:53:28 -07:00 committed by Victor Berchet
parent 5d294624fa
commit eb7d8c702c
2 changed files with 2 additions and 2 deletions

View File

@ -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
* 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

View File

@ -554,7 +554,7 @@ export declare class ExpressionChangedAfterItHasBeenCheckedException extends Bas
/** @stable */
export interface FactoryProvider {
deps: any[];
deps?: any[];
multi?: boolean;
provide: any;
useFactory: Function;