Fix parameterized typings in selectize.d.ts

This commit is contained in:
Adi Dahiya
2014-12-09 12:22:56 -05:00
parent 9a6d206c5a
commit 83f3d32403

View File

@@ -160,7 +160,7 @@ declare module Selectize {
*
* Default: []
*/
options?: T[];
options?: U[];
/**
* The <option> attribute from which to read JSON data about the option.
@@ -269,8 +269,11 @@ declare module Selectize {
/**
* Invoked when the value of the control changes.
*
* If single select, value is of type T.
* If multi select, value is of type T[].
*/
onChange?(value: T): any;
onChange?(value: any): any;
/**
* Invoked when an item is selected.
@@ -320,7 +323,7 @@ declare module Selectize {
/**
* Invoked when new options have been loaded and added to the control (via the "load" option or "load" API method).
*/
onLoad?(data: U): any;
onLoad?(data: U[]): any;
// Rendering
// ------------------------------------------------------------------------------------------------------------
@@ -526,7 +529,7 @@ declare module Selectize {
getValue(): any;
/**
* Resets the selected items to the given value.
* Resets the selected items to the given value(s).
*/
setValue(value: T): void;
setValue(value: T[]): void;