Skip to content
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

Addon-a11y: Export parameter types #16128

Merged
merged 1 commit into from Sep 23, 2021
Merged

Addon-a11y: Export parameter types #16128

merged 1 commit into from Sep 23, 2021

Conversation

kaelig
Copy link
Contributor

@kaelig kaelig commented Sep 22, 2021

What I did

In order to match addon-a11y's options in our automated a11y testing suite, I'd like to use the same types.

Workaround:

import type {A11yParameters} from '@storybook/addon-a11y/dist/ts3.9/params';

Not sure my PR shows the correct way to do this, or if there are other existing workarounds – I'd appreciate some advice!

How to test

Not sure!

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

In order to match addon-a11y's options in our automated a11y testing suite, I'd like to use the same types.

Workaround:

```ts
import type {A11yParameters} from '@storybook/addon-a11y/dist/ts3.9/params';
```

Not sure my PR shows the correct way to do this, or if there are other existing workarounds – I'd appreciate some advice!
@nx-cloud
Copy link

nx-cloud bot commented Sep 22, 2021

Nx Cloud Report

CI ran the following commands for commit 797b7df. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch

Status Command
#000000 nx run-many --target=prepare --all --parallel --max-parallel=15

Sent with 💌 from NxCloud.

@shilman shilman changed the title [addon-a11y] Export types of params Addon-a11y: Export parameter types Sep 23, 2021
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @kaelig 🙏

@shilman shilman merged commit fef18b1 into storybookjs:next Sep 23, 2021
@kaelig kaelig deleted the patch-4 branch September 24, 2021 03:55
@shilman shilman added this to the 6.4 PRs milestone Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants