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 +}