@ocubist/error-alchemy
Version:
A powerful Node.js error-handling-framework with custom error types for easy debugging, enhanced error management, strong zod-support and useful quality-of-life-functionality for asserting and validating values.
11 lines • 475 B
TypeScript
import { ZodSchema } from "zod";
/**
* Asynchronously validates a value against a Zod schema.
*
* @template T
* @param {T} value - The value to validate.
* @param {ZodSchema<T>} schema - The Zod schema to validate against.
* @returns {Promise<boolean>} A promise that resolves to a boolean indicating whether the value is valid.
*/
export declare const asyncValidate: <T>(value: T, schema: ZodSchema<T>) => Promise<boolean>;
//# sourceMappingURL=asyncValidate.d.ts.map