Skip to content

Commit

Permalink
Add types for missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
codershiba committed May 4, 2024
1 parent 895d2be commit 59b331e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions types/selectize/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,11 @@ declare namespace Selectize {
*/
addItem(value: T, silent?: boolean): void;

/**
* "Selects" multiple items at once. Adds them to the list at the current caret position.
*/
addItems(values: T, silent?: boolean): void;

/**
* Removes the selected item matching the provided value.
*/
Expand All @@ -500,6 +505,16 @@ declare namespace Selectize {
*/
addOptionGroup(id: string, data: U): void;

/**
* Clears all existing option groups.
*/
clearOptionGroups(): void;

/**
* Removes an existing option group.
*/
removeOptionGroup(id: string): void;

// Events
// ------------------------------------------------------------------------------------------------------------

Expand Down

0 comments on commit 59b331e

Please sign in to comment.