UNPKG

appwrite-utils

Version:

`appwrite-utils` is a comprehensive TypeScript library designed to streamline the development process for Appwrite projects. It provides a suite of utilities and helper functions that facilitate data manipulation, schema management, and seamless integrati

28 lines (27 loc) 1.09 kB
import { z } from "zod"; export declare const urlAttributeSchema: z.ZodObject<{ key: z.ZodString; type: z.ZodDefault<z.ZodLiteral<"url">>; error: z.ZodOptional<z.ZodDefault<z.ZodString>>; required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; array: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>; description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>; }, "strip", z.ZodTypeAny, { type: "url"; key: string; description?: string | Record<string, string> | null | undefined; required?: boolean | undefined; array?: boolean | undefined; error?: string | undefined; xdefault?: string | null | undefined; }, { key: string; type?: "url" | undefined; description?: string | Record<string, string> | null | undefined; required?: boolean | undefined; array?: boolean | undefined; error?: string | undefined; xdefault?: string | null | undefined; }>; export type UrlAttribute = z.infer<typeof urlAttributeSchema>;