mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-25 06:51:11 +00:00
15f4bd8eff
* chore: migrate from zod/v3 to zod/v4 This commit contains the logic changes * chore: migrate imports from zod/v3 to zod/v4 This contains import updates and adds explicit record keys as zod/v4 requires these now * ci: enforce usage of zod/v4
19 lines
408 B
TypeScript
19 lines
408 B
TypeScript
import { z } from 'zod/v4';
|
|
|
|
const UnityReleaseNote = z.object({
|
|
url: z.string(),
|
|
});
|
|
|
|
const UnityRelease = z.object({
|
|
version: z.string(),
|
|
releaseDate: z.string(),
|
|
releaseNotes: UnityReleaseNote,
|
|
shortRevision: z.string(),
|
|
});
|
|
|
|
export const UnityReleasesJSON = z.object({
|
|
total: z.number(),
|
|
results: UnityRelease.array(),
|
|
});
|
|
export type UnityReleasesJSON = z.infer<typeof UnityReleasesJSON>;
|