mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Reorder select2 overloads from most specific to least specific so overload resolution behaves as expected.
This commit is contained in:
Vendored
+5
-3
@@ -87,9 +87,7 @@ interface JQuery {
|
||||
|
||||
select2(): JQuery;
|
||||
select2(it: IdTextPair): JQuery;
|
||||
select2(options: Select2Options): JQuery;
|
||||
select2(method: string): any;
|
||||
select2(method: string, value: any, trigger?: boolean): any;
|
||||
|
||||
/**
|
||||
* Get the id value of the current selection
|
||||
*/
|
||||
@@ -144,4 +142,8 @@ interface JQuery {
|
||||
* Notifies Select2 that a drag and drop sorting operation has finished
|
||||
*/
|
||||
select2(method: 'onSortEnd'): void;
|
||||
|
||||
select2(method: string): any;
|
||||
select2(method: string, value: any, trigger?: boolean): any;
|
||||
select2(options: Select2Options): JQuery;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user