@code-pushup/models
Version:
Model definitions and validators for the Code PushUp CLI
42 lines (41 loc) • 1.39 kB
TypeScript
import { z } from 'zod';
export declare const issueSeveritySchema: z.ZodEnum<{
error: "error";
info: "info";
warning: "warning";
}>;
/**
* Type Definition: `IssueSeverity`
*
* This type is derived from a Zod schema and represents
* the validated structure of `IssueSeverity` used within the application.
*
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#issueseverity}
*/
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>;
/**
* Type Definition: `Issue`
*
* This type is derived from a Zod schema and represents
* the validated structure of `Issue` used within the application.
*
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#issue}
*/
export type Issue = z.infer<typeof issueSchema>;