From 49b672dc085f8a37f084891175de9bd6b09d8ce7 Mon Sep 17 00:00:00 2001 From: Dan Quirk Date: Mon, 31 Mar 2014 19:14:03 -0700 Subject: [PATCH] Reorder select2 overloads from most specific to least specific so overload resolution behaves as expected. --- select2/select2.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/select2/select2.d.ts b/select2/select2.d.ts index 3cf787a95e..b719ecfac8 100644 --- a/select2/select2.d.ts +++ b/select2/select2.d.ts @@ -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; }