From 2f08ed8d3edc564fedeb39c3c5a835b1af0af1d8 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Fri, 17 Jul 2015 12:25:12 -0700 Subject: [PATCH] fix(di): fixed types --- modules/angular2/src/di/decorators.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/angular2/src/di/decorators.ts b/modules/angular2/src/di/decorators.ts index 84f50fe78c..3d138c7721 100644 --- a/modules/angular2/src/di/decorators.ts +++ b/modules/angular2/src/di/decorators.ts @@ -46,24 +46,24 @@ export interface SelfFactory { * Factory for creating {@link ParentMetadata}. */ export interface ParentFactory { - ({self: boolean}?): any; - new ({self: boolean}?): ParentMetadata; + (visibility?: {self: boolean}): any; + new (visibility?: {self: boolean}): ParentMetadata; } /** * Factory for creating {@link AncestorMetadata}. */ export interface AncestorFactory { - ({self: boolean}?): any; - new ({self: boolean}?): AncestorMetadata; + (visibility?: {self: boolean}): any; + new (visibility?: {self: boolean}): AncestorMetadata; } /** * Factory for creating {@link UnboundedMetadata}. */ export interface UnboundedFactory { - ({self: boolean}?): any; - new ({self: boolean}?): UnboundedMetadata; + (visibility?: {self: boolean}): any; + new (visibility?: {self: boolean}): UnboundedMetadata; } /**