mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
feat(combo-box): type id as any
This commit is contained in:
parent
144eba1747
commit
be854e0d3f
1 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
||||||
<script>
|
<script>
|
||||||
/**
|
/**
|
||||||
* @typedef {{ id: string; text: string; }} ComboBoxItem
|
* @typedef {any} ComboBoxItemId
|
||||||
* @event {{ selectedId: string; selectedItem: ComboBoxItem }} select
|
* @typedef {{ id: ComboBoxItemId; text: string; }} ComboBoxItem
|
||||||
|
* @event {{ selectedId: ComboBoxItemId; selectedItem: ComboBoxItem }} select
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +19,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the selected item by value id
|
* Set the selected item by value id
|
||||||
* @type {string}
|
* @type {ComboBoxItemId}
|
||||||
*/
|
*/
|
||||||
export let selectedId = undefined;
|
export let selectedId = undefined;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue