mirror of
https://github.com/renovatebot/renovate.git
synced 2025-05-12 23:51:55 +00:00
12 lines
295 B
TypeScript
12 lines
295 B
TypeScript
import { z } from 'zod';
|
|
import { MaybeTimestamp } from '../../../util/timestamp';
|
|
|
|
export const ReleaseTimestampSchema = z
|
|
.object({
|
|
version: z.object({
|
|
created_at: MaybeTimestamp,
|
|
}),
|
|
})
|
|
.transform(({ version: { created_at } }) => created_at)
|
|
.nullable()
|
|
.catch(null);
|