From 3e0246f2f20e73b4ca5f4f6d296e7d9d730338a8 Mon Sep 17 00:00:00 2001 From: zackschuster Date: Tue, 30 Oct 2018 08:36:52 +0000 Subject: [PATCH] Fix types (#452) --- types/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 0602cec..6c8a987 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -850,10 +850,10 @@ export default class Choices { * ], * }); * - * example.setValueByChoice('Two'); // Choice with value of 'Two' has now been selected. + * example.setChoiceByValue('Two'); // Choice with value of 'Two' has now been selected. * ``` */ - setValueByChoice(value: string | string[]): this; + setChoiceByValue(value: string | string[]): this; /** Direct populate choices */ setChoices(choices: any[], value: string, label: string, replaceChoices?: boolean): this; @@ -921,4 +921,4 @@ export default class Choices { /** Render DOM with values */ private render(): void; -} \ No newline at end of file +}