@code-pushup/models
Version:
Model definitions and validators for the Code PushUp CLI
20 lines (19 loc) • 755 B
TypeScript
import { z } from 'zod';
export declare const sourceFileLocationSchema: 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>;
/**
* Type Definition: `SourceFileLocation`
*
* This type is derived from a Zod schema and represents
* the validated structure of `SourceFileLocation` used within the application.
*
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#sourcefilelocation}
*/
export type SourceFileLocation = z.infer<typeof sourceFileLocationSchema>;