Reorder select2 overloads from most specific to least specific so overload resolution behaves as expected.

This commit is contained in:
Dan Quirk
2014-03-31 19:14:03 -07:00
parent dad0ef400c
commit 49b672dc08
+5 -3
View File
@@ -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;
}