storybookjs/storybook

[Bug]: Broken types for `useArgs<generic>`

Open

#25,070 opened on Dec 1, 2023

View on GitHub
 (3 comments) (0 reactions) (1 assignee)TypeScript (10,058 forks)batch import
argsbuggood first issuehelp wantedsev:S3typescript

Repository metrics

Stars
 (89,909 stars)
PR merge metrics
 (Avg merge 7d 22h) (184 merged PRs in 30d)

Description

Describe the bug

When upgrading from version 7.4.6 to 7.6.2, I discovered that useArgs<generic> is no longer generic, which breaks the fix 7.0.0-beta.26 (January 14, 2023)

API: Fix typing on useArgs https://github.com/storybooks/storybook/pull/20610

To Reproduce

No response

System

No response

Additional context

No response

Contributor guide