feat(combo-box): type id as any

This commit is contained in:
Eric Liu 2022-01-20 16:50:50 -08:00
commit be854e0d3f

View file

@ -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;