UNPKG

zod-valid

Version:

Lightweight utilities for flexible Zod schema validation (string, number, array, object, boolean, ISO).

6 lines (3 loc) 236 B
import z from 'zod'; declare function nonNullable<T>(schema: z.ZodType<T>, message?: string): z.ZodPipe<z.ZodType<T, unknown, z.core.$ZodTypeInternals<T, unknown>>, z.ZodTransform<Awaited<NonNullable<T>>, T>>; export { nonNullable };