UNPKG

@code-pushup/models

Version:

Model definitions and validators for the Code PushUp CLI

21 lines 762 B
import { z } from 'zod'; export const cacheConfigObjectSchema = z .object({ read: z .boolean() .describe('Whether to read from cache if available') .default(false), write: z .boolean() .describe('Whether to write results to cache') .default(false), }) .describe('Cache configuration object for read and/or write operations'); export const cacheConfigShorthandSchema = z .boolean() .describe('Cache configuration shorthand for both, read and write operations'); export const cacheConfigSchema = z .union([cacheConfigShorthandSchema, cacheConfigObjectSchema]) .describe('Cache configuration for read and write operations') .default(false); //# sourceMappingURL=cache-config.js.map