Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

fix: Remove deep import StoryFnReactReturnType from @storybook/react #20

Merged
merged 1 commit into from
May 23, 2021

Conversation

ljcl
Copy link
Contributor

@ljcl ljcl commented May 11, 2021

It appears the import path used for StoryFnReactReturnType no longer exists in @storybook/react from 6.2 and onwards.
This is causing a type error when used externally.

As this type is only ReactElement<unknown> I thought it would be better to inline this and avoid a deep import.

@yannbf
Copy link
Member

yannbf commented May 23, 2021

Hey @ljcl, thanks for your contribution! The types should still be there, but maybe from a different path. Regardless, I think it's a good idea. Having react as peer dep also makes sense.

@yannbf yannbf merged commit d294000 into storybookjs:main May 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants