mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-08 08:52:19 +02:00
fixed a small function name bug with typescript definition
This commit is contained in:
parent
0519b99397
commit
04aff72e11
4
types/index.d.ts
vendored
4
types/index.d.ts
vendored
|
@ -157,7 +157,7 @@ declare module "choices.js" {
|
||||||
* @return {Object} Class instance
|
* @return {Object} Class instance
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
setChoiceByValue(value: string | string[]): this;
|
setValueByChoice(value: string | string[]): this;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Direct populate choices
|
* Direct populate choices
|
||||||
|
@ -207,7 +207,7 @@ declare module "choices.js" {
|
||||||
ajax(fn: (values: any) => any): this;
|
ajax(fn: (values: any) => any): this;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Choices {
|
declare namespace Choices {
|
||||||
interface Options {
|
interface Options {
|
||||||
/**
|
/**
|
||||||
* Optionally suppress console errors and warnings.
|
* Optionally suppress console errors and warnings.
|
||||||
|
|
Loading…
Reference in a new issue