From aea6e0dab3ed05d2ba1bfb33d67c838c8b6dd4a8 Mon Sep 17 00:00:00 2001 From: jraymakers Date: Tue, 7 Jan 2014 15:59:44 -0800 Subject: [PATCH] support optional scope on ITemplateLinkingFunction --- angularjs/angular.d.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 875abc754f..5bfde41e9f 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -537,9 +537,15 @@ declare module ng { directive(directivesMap: any): ICompileProvider; } - interface ITemplateLinkingFunction { + interface ICloneAttachFunction { // Let's hint but not force cloneAttachFn's signature - (scope: IScope, cloneAttachFn?: (clonedElement?: JQuery, scope?: IScope) => any): JQuery; + (clonedElement?: JQuery, scope?: IScope): any + } + + interface ITemplateLinkingFunction { + (scope: IScope, cloneAttachFn?: ICloneAttachFunction): JQuery; + // scope argument is optional + (cloneAttachFn?: ICloneAttachFunction): JQuery; } ///////////////////////////////////////////////////////////////////////////