UNPKG

@dcl.ru/dtos

Version:

dcl.ru API v3 data transfer objects — types, enums and zod schemas

63 lines 1.87 kB
import { z } from 'zod'; export declare const PostSchema: z.ZodObject<{ slug: z.ZodString; title: z.ZodString; lead: z.ZodNullable<z.ZodString>; text: z.ZodNullable<z.ZodString>; imageUrl: z.ZodNullable<z.ZodString>; altText: z.ZodNullable<z.ZodString>; copyright: z.ZodNullable<z.ZodString>; copyrightUrl: z.ZodNullable<z.ZodString>; timestamp: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { title: string; text: string | null; slug: string; altText: string | null; copyright: string | null; copyrightUrl: string | null; lead: string | null; imageUrl: string | null; timestamp: string | null; }, { title: string; text: string | null; slug: string; altText: string | null; copyright: string | null; copyrightUrl: string | null; lead: string | null; imageUrl: string | null; timestamp: string | null; }>; export type PostDto = z.infer<typeof PostSchema>; export declare const PostCardSchema: z.ZodObject<{ slug: z.ZodString; title: z.ZodString; lead: z.ZodNullable<z.ZodString>; imageUrl: z.ZodNullable<z.ZodString>; altText: z.ZodNullable<z.ZodString>; copyright: z.ZodNullable<z.ZodString>; copyrightUrl: z.ZodNullable<z.ZodString>; timestamp: z.ZodNullable<z.ZodDate>; }, "strip", z.ZodTypeAny, { title: string; slug: string; altText: string | null; copyright: string | null; copyrightUrl: string | null; lead: string | null; imageUrl: string | null; timestamp: Date | null; }, { title: string; slug: string; altText: string | null; copyright: string | null; copyrightUrl: string | null; lead: string | null; imageUrl: string | null; timestamp: Date | null; }>; export type PostCardDto = z.infer<typeof PostCardSchema>; //# sourceMappingURL=blog.d.ts.map