Skip to content

Commit b09c61b

Browse files
committed
2 parents af12bb6 + 8af27bc commit b09c61b

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

angularjs/angular.d.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,16 @@ declare module ng {
537537
directive(directivesMap: any): ICompileProvider;
538538
}
539539

540-
interface ITemplateLinkingFunction {
540+
interface ICloneAttachFunction {
541541
// Let's hint but not force cloneAttachFn's signature
542-
(scope: IScope, cloneAttachFn?: (clonedElement?: JQuery, scope?: IScope) => any): JQuery;
542+
(clonedElement?: JQuery, scope?: IScope): any;
543+
}
544+
545+
interface ITemplateLinkingFunction {
546+
// If the scope is provided, then the cloneAttachFn must be as well.
547+
(scope: IScope, cloneAttachFn: ICloneAttachFunction): JQuery;
548+
// If one argument is provided, then it's assumed to be the cloneAttachFn.
549+
(cloneAttachFn?: ICloneAttachFunction): JQuery;
543550
}
544551

545552
///////////////////////////////////////////////////////////////////////////
@@ -827,4 +834,4 @@ declare module ng {
827834
}
828835

829836
}
830-
}
837+
}

jqueryui/jqueryui.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ declare module JQueryUI {
185185
title?: string;
186186
width?: any; // number or string
187187
zIndex?: number;
188+
189+
close?: DialogEvent;
188190
}
189191

190192
interface DialogUIParams {
@@ -561,9 +563,15 @@ declare module JQueryUI {
561563
heightStyle?: string;
562564
hide?: any; // boolean, number, string or object
563565
show?: any; // boolean, number, string or object
566+
567+
activate?: TabsEvent;
564568
}
565569

566570
interface TabsUIParams {
571+
newTab: JQuery;
572+
oldTab: JQuery;
573+
newPanel: JQuery;
574+
oldPanel: JQuery;
567575
}
568576

569577
interface TabsEvent {

0 commit comments

Comments
 (0)