mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
Merge pull request #552 from thomasandersen/jquery-overloads
Suggestion: jQuery overloads for jQuery UI's method overrides
This commit is contained in:
7
jqueryui/jqueryui.d.ts
vendored
7
jqueryui/jqueryui.d.ts
vendored
@@ -919,18 +919,24 @@ interface JQuery {
|
||||
effect(effect: string, options?: any, duration?: number, complete?: Function): JQuery;
|
||||
effect(effect: string, options?: any, duration?: string, complete?: Function): JQuery;
|
||||
|
||||
hide(duration?: any, callback?: any): JQuery;
|
||||
hide(options: any): JQuery;
|
||||
hide(effect: string, options?: any, duration?: number, complete?: Function): JQuery;
|
||||
hide(effect: string, options?: any, duration?: string, complete?: Function): JQuery;
|
||||
|
||||
show(duration?: any, callback?: any): JQuery;
|
||||
show(options: any): JQuery;
|
||||
show(effect: string, options?: any, duration?: number, complete?: Function): JQuery;
|
||||
show(effect: string, options?: any, duration?: string, complete?: Function): JQuery;
|
||||
|
||||
toggle(duration?: any, callback?: any): JQuery;
|
||||
toggle(options: any): JQuery;
|
||||
toggle(effect: string, options?: any, duration?: number, complete?: Function): JQuery;
|
||||
toggle(effect: string, options?: any, duration?: string, complete?: Function): JQuery;
|
||||
|
||||
position(): { top: number; left: number; };
|
||||
position(options: JQueryPositionOptions): JQuery;
|
||||
|
||||
enableSelection(): JQuery;
|
||||
disableSelection(): JQuery;
|
||||
focus(delay: number, callback?: Function): JQuery;
|
||||
@@ -939,7 +945,6 @@ interface JQuery {
|
||||
scrollParent(): JQuery;
|
||||
zIndex(): JQuery;
|
||||
zIndex(zIndex: number): JQuery;
|
||||
position(options: JQueryPositionOptions): JQuery;
|
||||
|
||||
widget: Widget;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user