mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
support optional scope on ITemplateLinkingFunction
This commit is contained in:
10
angularjs/angular.d.ts
vendored
10
angularjs/angular.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user