mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-29 15:44:31 +00:00
update optionality of arguments to ITemplateLinkingFunction
This commit is contained in:
4
angularjs/angular.d.ts
vendored
4
angularjs/angular.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user