From a05a73f965544fbc72c19fb95b697acc5ba3198c Mon Sep 17 00:00:00 2001 From: Santi Albo Date: Wed, 21 Aug 2013 11:59:44 +0100 Subject: [PATCH] Select2: make optional parameters optional Both `more` and `context` arguments are optional for the object passed to `callback` in `Select2QueryOptions`. See docs example for clarification: http://ivaynberg.github.io/select2/#data --- select2/select2.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2/select2.d.ts b/select2/select2.d.ts index 70015a2e64..e5fb165711 100644 --- a/select2/select2.d.ts +++ b/select2/select2.d.ts @@ -10,7 +10,7 @@ interface Select2QueryOptions { term?: string; page?: number; context?: any; - callback?: (result: { results: any; more: boolean; context: any; }) => void; + callback?: (result: { results: any; more?: boolean; context?: any; }) => void; } interface AjaxFunction {