testing-react icon indicating copy to clipboard operation
testing-react copied to clipboard

Expose types

Open pshoniuk opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. I have utils/helpers that work with the results of the composeStory/composeStories functions. Currently, @storybook/testing-react doesn't Expose the types these functions work with. More specifically, I need to use StoryFile and StoriesWithPartialProps.

Describe the solution you'd like It would be great if types were exported and available like this: import type { StoryFile, StoriesWithPartialProps } from '@storybook/testing-react'

Describe alternatives you've considered I'm currently importing these types from the dist folder, like this: import type { StoryFile, StoriesWithPartialProps } from '@storybook/testing-react/dist/types'. This works, but it's not a good approach.

pshoniuk avatar Aug 02 '22 03:08 pshoniuk