Skip to content

Commit

Permalink
deal with nested config structure and types
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskalmar committed Nov 18, 2023
1 parent 8f72fca commit 49c6acb
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 @@ -455,9 +455,15 @@ export const ConfigSchema = z.union([
export const FlexibleConfigSchema = z.union([
PlatformModeConfigSchema.extend({
timeouts: TimeoutsSchema.partial(),
pageShots: PageShotsSchema.extend({
pages: z.array(PageScreenshotParameterSchema.partial()),
}),
}).partial(),
GenerateOnlyModeConfigSchema.extend({
timeouts: TimeoutsSchema.partial(),
pageShots: PageShotsSchema.extend({
pages: z.array(PageScreenshotParameterSchema.partial()),
}),
}).partial(),
]);

Expand Down

0 comments on commit 49c6acb

Please sign in to comment.