@code-pushup/models
Version:
Model definitions and validators for the Code PushUp CLI
33 lines (32 loc) • 1.1 kB
TypeScript
import { z } from 'zod';
export declare const formatSchema: z.ZodEnum<{
json: "json";
md: "md";
}>;
/**
* Type Definition: `Format`
*
* This type is derived from a Zod schema and represents
* the validated structure of `Format` used within the application.
*
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#format}
*/
export type Format = z.infer<typeof formatSchema>;
export declare const persistConfigSchema: z.ZodObject<{
outputDir: z.ZodOptional<z.ZodString>;
filename: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodArray<z.ZodEnum<{
json: "json";
md: "md";
}>>>;
skipReports: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
/**
* Type Definition: `PersistConfig`
*
* This type is derived from a Zod schema and represents
* the validated structure of `PersistConfig` used within the application.
*
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#persistconfig}
*/
export type PersistConfig = z.infer<typeof persistConfigSchema>;