-
-
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 compatibility #953
Comments
Comment by ndelangen Hey @mdcorriveau, thank you for reporting! Sounds you know a thing or 2 about typescript, would you be able to help us out by creating a PR? |
Comment by mnmtanish I've never done this before but perhaps we can add a type definition file to this repo which will add the method to the story type. I found this page in typescript documentation about merging type declarations. I'll check it out and comment here. |
Sorry i've just seen your message, i'll try to give you some info tomorrow ! |
The custom That will make this problem go away too. Ideas and solution are welcome, but I'm not going to fix this, because long term this is not how we want to do things. Related #1209 |
I created a PR containing a new example for React + TypeScript #5011 |
Issue by mdcorriveau
Friday Mar 31, 2017 at 19:07 GMT
Originally opened as storybook-eol/react-storybook-addon-info#144
Hi,
I'm currently converting my react application and storybook to typescript. I currently have a bunch of error with the addWithInfo which return this error :
TS2339:Property 'addWithInfo' does not exist on type 'Story'.
While react-storybook is already providing a storybook.d.ts file in their package, do you think it'll be a great idea to do the same with react-storybook-addon-info ?
Thanks
The text was updated successfully, but these errors were encountered: