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
|
@ -11,7 +11,13 @@
|
|||
import CheckmarkFilled from "carbon-icons-svelte/lib/CheckmarkFilled.svelte";
|
||||
</script>
|
||||
|
||||
<StructuredList>
|
||||
<StructuredList
|
||||
selection
|
||||
selected="row-1-value"
|
||||
on:change="{(e) => {
|
||||
console.log(e.detail); // string
|
||||
}}"
|
||||
>
|
||||
<StructuredListHead>
|
||||
<StructuredListRow head>
|
||||
<StructuredListCell head>Column A</StructuredListCell>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue