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
This commit is contained in:
Santi Albo 2013-08-21 11:59:44 +01:00
parent 11d86e7276
commit a05a73f965

View File

@ -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 {