mirror of
https://github.com/renovatebot/renovate.git
synced 2025-03-12 15:26:58 +00:00
11 lines
233 B
TypeScript
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);
|