Fix types (#452)

This commit is contained in:
zackschuster 2018-10-30 08:36:52 +00:00 committed by Josh Johnson
parent ff08408c84
commit 3e0246f2f2

6
types/index.d.ts vendored
View file

@ -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;
}
}