Set the type of language to any. (#10187)

* Set the type of language to any.

The type of language can be string, array, etc.
Sources: https://github.com/select2/select2/blob/6844be777b0fe9af1d2b9a8f6051b7eb7d532247/src/js/select2/defaults.js#L235-L294

* Update the language type.
This commit is contained in:
Pierre Urban
2016-07-19 14:40:31 -07:00
committed by Mohamed Hegazy
parent 5ccabc86ec
commit 9bd416090b
+1 -1
View File
@@ -78,7 +78,7 @@ interface Select2Options {
*/
templateSelection?: (object: Select2SelectionObject) => any;
templateResult?: (object: Select2SelectionObject) => any;
language?: string;
language?: string | string[] | {};
}
interface Select2JQueryEventObject extends JQueryEventObject {