update optionality of arguments to ITemplateLinkingFunction

This commit is contained in:
jraymakers
2014-01-09 16:01:48 -08:00
parent 6529304f92
commit 90cf96b451

View File

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