Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Feature Request] Add TypeScript types for storybook's chromatic: parameter #540

Open
ghost opened this issue Mar 4, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 4, 2022

I would love to see the { parameters: { chromatic : {} } option get types. For example, in the code below the delay should be a number and disableSnapshot should be a boolean. However, the types don't seem to exist for these yet and the TS compiler doesn't report any errors.

export default {
  component: Component,
  parameters: {
    chromatic: {
      delay: [1, 2, 3],
      disableSnapshot: 'true',
    },
  },
} as Meta;
@ghost ghost changed the title [Feature Request] Add types for storybook chromatic: params [Feature Request] Add TypeScript types for storybook's chromatic: parameter Mar 4, 2022
@herrherrmann
Copy link

herrherrmann commented Mar 25, 2024

Yes, please! I’d love to see things like viewport (see Viewports docs) typed.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants