mirror of
https://github.com/Choices-js/Choices.git
synced 2024-04-28 12:02:46 +02:00
Fix types (#452)
This commit is contained in:
parent
ff08408c84
commit
3e0246f2f2
6
types/index.d.ts
vendored
6
types/index.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue