-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript: Export IStory in @storybook/angular
#9097
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/storybook/monorepo/btc0fxt7z |
Should we do this for all frameworks? |
@shilman seems this is angular specific PR, there was a breaking change that renamed IStory to StoryFnAngularReturnType 997ce27#diff-24186810dba01fce38b56c8e599a9ed5 My change is not breaking, I am only naming as IStory for the export from |
Sorry my bad. You're adding an export, not modifying an existing export. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@atanasster @kroeder @gaetanmaisse do we want to do this for all frameworks, not just angular? |
@storybook/angular
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want IStory
to be StoryFn<StoryFnAngularReturnType>
?
@shilman YES we do |
In the breaking change IStory was just renamed to StoryFnAngularReturnType, so I am not sure:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Thanks for the clarification @atanasster
Typescript: Export IStory in `@storybook/angular`
Issue: #9041
What I did
added export of IStory for compatibility
How to test
in angular
import { IStory } from '@storybook/angular';