UNPKG

@dfinity/zod-schemas

Version:

A collection of reusable Zod schemas and validators for common data patterns in ICP applications

12 lines (11 loc) 359 B
import * as z from "zod"; /** * Zod schema to validate a value is a `Uint8Array` instance. * * @example * ```typescript * const result = Uint8ArraySchema.safeParse(new Uint8Array([1, 2, 3])); * console.log(result.success); // true or false * ``` */ export declare const Uint8ArraySchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;