diff --git a/modules/@angular/core/src/di/provider.ts b/modules/@angular/core/src/di/provider.ts index 74cbce3330..9f05bbd983 100644 --- a/modules/@angular/core/src/di/provider.ts +++ b/modules/@angular/core/src/di/provider.ts @@ -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 diff --git a/tools/public_api_guard/core/index.d.ts b/tools/public_api_guard/core/index.d.ts index 8905c946a9..3b4665802e 100644 --- a/tools/public_api_guard/core/index.d.ts +++ b/tools/public_api_guard/core/index.d.ts @@ -554,7 +554,7 @@ export declare class ExpressionChangedAfterItHasBeenCheckedException extends Bas /** @stable */ export interface FactoryProvider { - deps: any[]; + deps?: any[]; multi?: boolean; provide: any; useFactory: Function;