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