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

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

Open
jeremiah-clothier opened this issue Mar 4, 2022 · 1 comment

Comments

@jeremiah-clothier
Copy link

jeremiah-clothier 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;
@jeremiah-clothier jeremiah-clothier 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.

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

No branches or pull requests

3 participants