fedicrawl/application/src/Fediverse/Providers/Peertube/Avatar.ts

8 wiersze
161 B
TypeScript

import { z } from 'zod'
export const avatarSchema = z.optional(z.nullable(z.object({
path: z.string()
})))
export type Avatar = z.infer<typeof avatarSchema>