@code-pushup/models
Version:
Model definitions and validators for the Code PushUp CLI
38 lines (37 loc) • 1.58 kB
TypeScript
import { z } from 'zod';
export declare const cacheConfigObjectSchema: z.ZodObject<{
read: z.ZodDefault<z.ZodBoolean>;
write: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>;
/**
* Type Definition: `CacheConfigObject`
*
* This type is derived from a Zod schema and represents
* the validated structure of `CacheConfigObject` used within the application.
*
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#cacheconfigobject}
*/
export type CacheConfigObject = z.infer<typeof cacheConfigObjectSchema>;
export declare const cacheConfigShorthandSchema: z.ZodBoolean;
/**
* Type Definition: `CacheConfigShorthand`
*
* This type is derived from a Zod schema and represents
* the validated structure of `CacheConfigShorthand` used within the application.
*
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#cacheconfigshorthand}
*/
export type CacheConfigShorthand = z.infer<typeof cacheConfigShorthandSchema>;
export declare const cacheConfigSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
read: z.ZodDefault<z.ZodBoolean>;
write: z.ZodDefault<z.ZodBoolean>;
}, z.core.$strip>]>>;
/**
* Type Definition: `CacheConfig`
*
* This type is derived from a Zod schema and represents
* the validated structure of `CacheConfig` used within the application.
*
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#cacheconfig}
*/
export type CacheConfig = z.infer<typeof cacheConfigSchema>;