fix(types): improve e.detail type for dispatched events

This commit is contained in:
Eric Liu 2024-01-27 09:43:42 -08:00
commit 674253b7bf
4 changed files with 16 additions and 0 deletions

View file

@ -1,4 +1,8 @@
<script>
/**
* @event {KeyboardEvent | MouseEvent} clear
*/
/**
* @typedef {"clearAll" | "clearSelection"} ListBoxSelectionTranslationId
*/

View file

@ -1,4 +1,8 @@
<script>
/**
* @event {number} change
*/
/** Specify the value of the slider */
export let value = 0;

View file

@ -1,4 +1,8 @@
<script>
/**
* @event {string} change
*/
/**
* Specify the selected structured list row value
* @type {string}

View file

@ -1,4 +1,8 @@
<script>
/**
* @event {number} change
*/
/** Specify the selected tab index */
export let selected = 0;