UNPKG

@macalinao/zod-solana

Version:

Zod schemas for Solana types with @solana/kit integration

16 lines (15 loc) 509 B
import * as z from "zod"; //#region src/uint8array-schema.d.ts /** * A Zod schema for Uint8Array. * Accepts an array of numbers and transforms it to a Uint8Array. */ declare const uint8ArraySchema: z.ZodType<Uint8Array>; /** * A Zod schema for JSON-encoded Uint8Array. * Accepts a JSON string, parses it, and transforms to Uint8Array. */ declare const jsonUint8ArraySchema: z.ZodType<Uint8Array>; //#endregion export { jsonUint8ArraySchema, uint8ArraySchema }; //# sourceMappingURL=uint8array-schema.d.ts.map