Skip to content

withStorybook.d.ts file is not emitted #646

Open
@trajano

Description

@trajano

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions