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; } ///////////////////////////////////////////////////////////////////////////