UNPKG

@code-pushup/models

Version:

Model definitions and validators for the Code PushUp CLI

25 lines (24 loc) 943 B
import { z } from 'zod'; export declare const auditSchema: z.ZodObject<{ slug: z.ZodString; title: z.ZodString; description: z.ZodOptional<z.ZodString>; docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>; isSkipped: z.ZodOptional<z.ZodBoolean>; }, z.core.$strip>; /** * Type Definition: `Audit` * * This type is derived from a Zod schema and represents * the validated structure of `Audit` used within the application. * * @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#audit} */ export type Audit = z.infer<typeof auditSchema>; export declare const pluginAuditsSchema: z.ZodArray<z.ZodObject<{ slug: z.ZodString; title: z.ZodString; description: z.ZodOptional<z.ZodString>; docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>; isSkipped: z.ZodOptional<z.ZodBoolean>; }, z.core.$strip>>;