UNPKG

@code-pushup/models

Version:

Model definitions and validators for the Code PushUp CLI

26 lines (25 loc) 814 B
import { z } from 'zod'; export declare const issueSeveritySchema: z.ZodEnum<{ error: "error"; info: "info"; warning: "warning"; }>; export type IssueSeverity = z.infer<typeof issueSeveritySchema>; export declare const issueSchema: z.ZodObject<{ message: z.ZodString; severity: z.ZodEnum<{ error: "error"; info: "info"; warning: "warning"; }>; source: z.ZodOptional<z.ZodObject<{ file: z.ZodString; position: z.ZodOptional<z.ZodObject<{ startLine: z.ZodNumber; startColumn: z.ZodOptional<z.ZodNumber>; endLine: z.ZodOptional<z.ZodNumber>; endColumn: z.ZodOptional<z.ZodNumber>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export type Issue = z.infer<typeof issueSchema>;