From 04aff72e110cdfb8264801b41c7e3c539278d3e0 Mon Sep 17 00:00:00 2001 From: Ed Lomonaco Date: Wed, 14 Mar 2018 15:59:21 -0400 Subject: [PATCH] fixed a small function name bug with typescript definition --- types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index f6b30a4..92cea6b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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.