mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
fix(types): improve e.detail
type for dispatched events (#1907)
* fix(types): improve `e.detail` type for dispatched events * Run "yarn build:docs" * test: assert new types
This commit is contained in:
parent
f1cafd4959
commit
6590457574
13 changed files with 70 additions and 35 deletions
|
@ -1,4 +1,8 @@
|
|||
<script>
|
||||
/**
|
||||
* @event {KeyboardEvent | MouseEvent} clear
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {"clearAll" | "clearSelection"} ListBoxSelectionTranslationId
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
<script>
|
||||
/**
|
||||
* @event {number} change
|
||||
*/
|
||||
|
||||
/** Specify the value of the slider */
|
||||
export let value = 0;
|
||||
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
<script>
|
||||
/**
|
||||
* @event {string} change
|
||||
*/
|
||||
|
||||
/**
|
||||
* Specify the selected structured list row value
|
||||
* @type {string}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
<script>
|
||||
/**
|
||||
* @event {number} change
|
||||
*/
|
||||
|
||||
/** Specify the selected tab index */
|
||||
export let selected = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue