Skip to content

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

@ghost

Description

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;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions