mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 10:33:39 +00:00
914c64afbd
* ci: add linting rule for schema and infered types * refactor: remove usages of Schema and differently named types
17 lines
422 B
TypeScript
17 lines
422 B
TypeScript
import { z } from 'zod/v4';
|
|
import { Json } from '../../schema-utils/index.ts';
|
|
|
|
export const RepoCacheRecord = Json.pipe(
|
|
z
|
|
.object({
|
|
repository: z.string().min(1),
|
|
revision: z.number().refine((v) => v === 13),
|
|
payload: z.string().min(1),
|
|
hash: z.string().min(1),
|
|
fingerprint: z.string().min(1),
|
|
})
|
|
.strict(),
|
|
);
|
|
|
|
export type RepoCacheRecord = z.infer<typeof RepoCacheRecord>;
|