From eb7d8c702cec6e4217eb47d3846e64ccf03fd271 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 24 Aug 2016 12:53:28 -0700 Subject: [PATCH] fix(core): FactoryProvider's deps property should be optional --- modules/@angular/core/src/di/provider.ts | 2 +- tools/public_api_guard/core/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;