denwa-web-shared
Version:
A shared library for Next.js App Router projects containing reusable components, hooks, schemas, and utilities.
32 lines (31 loc) • 1.31 kB
TypeScript
import { z } from 'zod';
export declare const responseSchema: z.ZodObject<{
statusCode: z.ZodOptional<z.ZodNumber>;
message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
messages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
data: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
error: z.ZodNullable<z.ZodOptional<z.ZodObject<{
statusCode: z.ZodNumber;
message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
messages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
}, z.core.$strip>>>;
response: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
}, z.core.$strip>;
export declare const serverImageSchema: z.ZodObject<{
altRU: z.ZodNullable<z.ZodOptional<z.ZodString>>;
altEN: z.ZodNullable<z.ZodOptional<z.ZodString>>;
altAR: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodString;
originalFileExtension: z.ZodString;
fileExtensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
prefixes: z.ZodOptional<z.ZodArray<z.ZodString>>;
folder: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const serverFileSchema: z.ZodObject<{
name: z.ZodString;
fullName: z.ZodString;
extension: z.ZodString;
entityId: z.ZodString;
fullPathExample: z.ZodString;
folder: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;