UNPKG

postchain-client

Version:

Client library for accessing a Postchain node through REST.

10 lines (9 loc) 242 B
import { ZodError } from "zod"; export type ValidationOptions = { throwOnError?: boolean; }; export type Validation = (value: unknown, options?: ValidationOptions) => { success: boolean; error?: ZodError; message?: string; };