mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Fix parameterized typings in selectize.d.ts
This commit is contained in:
11
selectize/selectize.d.ts
vendored
11
selectize/selectize.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user