mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-08 00:42:15 +02:00
Fix type for parameter on setChoiceByValue
This commit is contained in:
parent
08d4f1fee7
commit
f63201d929
|
@ -1,4 +1,4 @@
|
|||
/*! choices.js v10.0.0 | © 2022 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||||
/*! choices.js v10.1.0 | © 2022 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||||
(function webpackUniversalModuleDefinition(root, factory) {
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
module.exports = factory();
|
||||
|
|
2
public/types/src/scripts/choices.d.ts
vendored
2
public/types/src/scripts/choices.d.ts
vendored
|
@ -66,7 +66,7 @@ declare class Choices implements Choices {
|
|||
hideDropdown(preventInputBlur?: boolean): this;
|
||||
getValue(valueOnly?: boolean): string[] | Item[] | Item | string;
|
||||
setValue(items: string[] | Item[]): this;
|
||||
setChoiceByValue(value: string): this;
|
||||
setChoiceByValue(value: string | string[]): this;
|
||||
/**
|
||||
* Set choices of select input via an array of objects (or function that returns array of object or promise of it),
|
||||
* a value field name and a label field name.
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -553,7 +553,7 @@ class Choices implements Choices {
|
|||
return this;
|
||||
}
|
||||
|
||||
setChoiceByValue(value: string): this {
|
||||
setChoiceByValue(value: string | string[]): this {
|
||||
if (!this.initialised || this._isTextElement) {
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue