question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSF3: Update story types

See original GitHub issue

In older versions of Component Story Format, named exports were functions. Starting in CSF 3.0, named exports can also be objects with render functions. We need to update the typescript types accordingly.

  • React
  • Vue
  • Vue3
  • Angular
  • Web components
  • Svelte
  • Ember

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
shilmancommented, Jul 21, 2021

@benbender not at all, no worries. having a default render function is brand new in CSF3, so the “custom” render function should just look like every other story that’s been written up until now.

1reaction
yannbfcommented, Jul 13, 2021

Hey @shilman I checked frameworks which got the proper typings from the list you set.

Regarding Svelte, I don’t think there are any types so far, even before CSF3… we have to add them. I also am wondering if anything has to be done in @storybook/addon-svelte-csf to support CSF3.

About Ember, I think type-wise is the same situation as Svelte.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Component Story Format 3.0 - Storybook - JS.ORG
Storybook is based on one core construct: the story. Everyone that uses Storybook writes stories for their component examples.
Read more >
Define pattern for story reuse in CSF3 · Issue #15954 - GitHub
I'm sure there are other categories I haven't thought of, let's discuss and I can update the table. In any case, my conclusion...
Read more >
CSF3: Update story types #15499 - Issuehunt
Hey @shilman I checked frameworks which got the proper typings from the list you set. Regarding Svelte, I don't think there are any...
Read more >
CSF3 Gene - GeneCards | CSF3 Protein | CSF3 Antibody
Granulocytes are a type of white blood cell that are part of the innate immune response. A modified form of this protein is...
Read more >
Colony-stimulating factors and receptors: Potential for cancer ...
Granulocyte colony-stimulating factor (G-CSF/CSF3) that binds to the ... Sponsored Content Policy: News-Medical.net publishes articles and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found