@code-pushup/models
Version:
Model definitions and validators for the Code PushUp CLI
37 lines (36 loc) • 1.41 kB
TypeScript
import { z } from 'zod';
export declare const groupRefSchema: z.ZodObject<{
slug: z.ZodString;
weight: z.ZodNumber;
}, z.core.$strip>;
export type GroupRef = z.infer<typeof groupRefSchema>;
export declare const groupMetaSchema: z.ZodObject<{
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>;
export type GroupMeta = z.infer<typeof groupMetaSchema>;
export declare const groupSchema: z.ZodObject<{
slug: z.ZodString;
refs: z.ZodArray<z.ZodObject<{
slug: z.ZodString;
weight: z.ZodNumber;
}, 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>;
}, z.core.$strip>;
export type Group = z.infer<typeof groupSchema>;
export declare const groupsSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
slug: z.ZodString;
refs: z.ZodArray<z.ZodObject<{
slug: z.ZodString;
weight: z.ZodNumber;
}, 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>;
}, z.core.$strip>>>;