@code-pushup/models
Version:
Model definitions and validators for the Code PushUp CLI
47 lines (46 loc) • 1.54 kB
TypeScript
import { z } from 'zod';
export declare const categoryRefSchema: z.ZodObject<{
slug: z.ZodString;
weight: z.ZodNumber;
type: z.ZodEnum<{
audit: "audit";
group: "group";
}>;
plugin: z.ZodString;
}, z.core.$strip>;
export type CategoryRef = z.infer<typeof categoryRefSchema>;
export declare const categoryConfigSchema: z.ZodObject<{
slug: z.ZodString;
refs: z.ZodArray<z.ZodObject<{
slug: z.ZodString;
weight: z.ZodNumber;
type: z.ZodEnum<{
audit: "audit";
group: "group";
}>;
plugin: z.ZodString;
}, z.core.$strip>>;
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
isSkipped: z.ZodOptional<z.ZodBoolean>;
scoreTarget: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export type CategoryConfig = z.infer<typeof categoryConfigSchema>;
export declare const categoriesSchema: z.ZodArray<z.ZodObject<{
slug: z.ZodString;
refs: z.ZodArray<z.ZodObject<{
slug: z.ZodString;
weight: z.ZodNumber;
type: z.ZodEnum<{
audit: "audit";
group: "group";
}>;
plugin: z.ZodString;
}, z.core.$strip>>;
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
docsUrl: z.ZodCatch<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>>;
isSkipped: z.ZodOptional<z.ZodBoolean>;
scoreTarget: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>>;