Skip to content

Commit

Permalink
[@mantine/core] Combobox: Fix readonly data array not being supported (
Browse files Browse the repository at this point in the history
  • Loading branch information
hexcowboy committed Jan 3, 2024
1 parent 29eb1bd commit c25e99e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export interface ComboboxParsedItemGroup {
items: ComboboxItem[];
}

export type ComboboxData = (string | ComboboxItem | ComboboxItemGroup)[];
export type ComboboxData =
| Array<string | ComboboxItem | ComboboxItemGroup>
| ReadonlyArray<string | ComboboxItem | ComboboxItemGroup>;
export type ComboboxParsedItem = ComboboxItem | ComboboxParsedItemGroup;

export type ComboboxLikeStylesNames = Exclude<ComboboxStylesNames, 'header' | 'footer' | 'search'>;
Expand Down

0 comments on commit c25e99e

Please sign in to comment.