0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-11 13:48:55 +00:00
renovatebot_renovate/lib/modules/datasource/crate/schema.ts
Sergei Zharinov 748b258797
feat(crate): Support releaseTimestamp (#31467)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-10-11 11:40:19 +00:00

11 lines
233 B
TypeScript

import { z } from 'zod';
export const ReleaseTimestampSchema = z
.object({
version: z.object({
created_at: z.string(),
}),
})
.transform(({ version: { created_at } }) => created_at)
.nullable()
.catch(null);