fixed a small function name bug with typescript definition

This commit is contained in:
Ed Lomonaco 2018-03-14 15:59:21 -04:00 committed by Josh Johnson
parent 0519b99397
commit 04aff72e11

4
types/index.d.ts vendored
View file

@ -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.