Skip to content

Commit

Permalink
export types
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskalmar committed Nov 18, 2023
1 parent 32ccfc0 commit 1374859
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const MaskSchema = z.object({
selector: z.string(),
});

export type Mask = z.infer<typeof MaskSchema>;

const PageScreenshotParameterSchema = z.object({
/**
* Path to the page to take a screenshot of (e.g. /login)
Expand Down Expand Up @@ -73,6 +75,10 @@ const PageScreenshotParameterSchema = z.object({
mask: z.array(MaskSchema).optional(),
});

export type PageScreenshotParameter = z.infer<
typeof PageScreenshotParameterSchema
>;

const StorybookShotsSchema = z.object({
/**
* URL of the Storybook instance or local folder
Expand Down

0 comments on commit 1374859

Please sign in to comment.