wc-storybook-helpers
wc-storybook-helpers copied to clipboard
Emitted event type always shown as `CustomEvent`
I have this piece in my CEM:
"events": [
{
"name": "focus",
"type": {
"text": "Event"
},
"description": "Emitted when the element has received focus."
},
The argTypes returned by the helper show CustomEvent<Event> though:
{
"name": "focus",
"description": "Emitted when the element has received focus.",
"control": false,
"table": {
"category": "events",
"type": {
"summary": "CustomEvent<Event>"
}
}
}
This has been added to the latest version of the project: https://wc-toolkit.com/integrations/storybook/