You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug #633 switches to typescript which is good, but the code needs a change to get the typings correct in the .d.ts
As I noted in the comment @tlow92 you added the hack I did for .d.ts to export it as a function but it does not send the correct typing and the .d.ts emitted is actually not correct. So I had to patch it back to
export = withStorybook;
I think all you need to do as I had commented is is export function withStorybook and it will emit the .d.ts correctly.
The text was updated successfully, but these errors were encountered:
Still unable to determine what's causing storybookjs/react-native#646
The typings look correct in the code but the emit didn't render something that works across
- tsc
- WebStorm
- VS Code
- expo export
Describe the bug
#633 switches to typescript which is good, but the code needs a change to get the typings correct in the .d.ts
As I noted in the comment @tlow92 you added the hack I did for .d.ts to export it as a function but it does not send the correct typing and the .d.ts emitted is actually not correct. So I had to patch it back to
I think all you need to do as I had commented is is
export function withStorybook
and it will emit the .d.ts correctly.The text was updated successfully, but these errors were encountered: