mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-17 21:16:34 +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
|
||||
* @public
|
||||
*/
|
||||
setChoiceByValue(value: string | string[]): this;
|
||||
setValueByChoice(value: string | string[]): this;
|
||||
|
||||
/**
|
||||
* Direct populate choices
|
||||
|
@ -207,7 +207,7 @@ declare module "choices.js" {
|
|||
ajax(fn: (values: any) => any): this;
|
||||
}
|
||||
|
||||
namespace Choices {
|
||||
declare namespace Choices {
|
||||
interface Options {
|
||||
/**
|
||||
* Optionally suppress console errors and warnings.
|
||||
|
|
Loading…
Reference in a new issue