mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 11:11:25 +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
|
@ -2,7 +2,11 @@
|
|||
import { Tabs, Tab, TabContent, TabsSkeleton } from "../types";
|
||||
</script>
|
||||
|
||||
<Tabs>
|
||||
<Tabs
|
||||
on:change="{(e) => {
|
||||
console.log(e.detail); // number
|
||||
}}"
|
||||
>
|
||||
<Tab label="Tab label 1" />
|
||||
<Tab label="Tab label 2" />
|
||||
<Tab label="Tab label 3" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue