From 90cf96b45178b6708d61b159b6bb0b541394b0ce Mon Sep 17 00:00:00 2001 From: jraymakers Date: Thu, 9 Jan 2014 16:01:48 -0800 Subject: [PATCH] update optionality of arguments to ITemplateLinkingFunction --- angularjs/angular.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 1a3889e047..6b0fe46830 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -543,7 +543,9 @@ declare module ng { } interface ITemplateLinkingFunction { - (scope?: IScope, cloneAttachFn?: ICloneAttachFunction): JQuery; + // If the scope is provided, then the cloneAttachFn must be as well. + (scope: IScope, cloneAttachFn: ICloneAttachFunction): JQuery; + // If one argument is provided, then it's assumed to be the cloneAttachFn. (cloneAttachFn?: ICloneAttachFunction): JQuery; }