From 7ddbd984197e548fc5b9a179284295d66f56a6d9 Mon Sep 17 00:00:00 2001 From: basarat Date: Fri, 31 Jan 2014 23:45:44 +1100 Subject: [PATCH] angularjs revert marking arguments for link function as optional --- angularjs/angular.d.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index f3e7dc000..061575166 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -748,14 +748,12 @@ declare module ng { ) => any; controller?: any; controllerAs?: string; - // A link function with no arguments is perfectly valid; the norm seems - // to be passing the scope, element and attributes. link?: - (scope?: IScope, - instanceElement?: IAugmentedJQuery, - instanceAttributes?: IAttributes, - controller?: any, - transclude?: ITranscludeFunction + (scope: IScope, + instanceElement: IAugmentedJQuery, + instanceAttributes: IAttributes, + controller: any, + transclude: ITranscludeFunction ) => void; name?: string; priority?: number;