UNPKG

@dcl.ru/dtos

Version:

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

25 lines 955 B
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>; }, z.core.$strip>; 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.ZodCoercedDate<unknown>>; }, z.core.$strip>; export type PostCardDto = z.infer<typeof PostCardSchema>; //# sourceMappingURL=blog.d.ts.map