UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

14 lines (13 loc) 414 B
/** * @module Utilities */ import { type StandardSchemaV1 } from "@standard-schema/spec"; export declare class ValidationError extends Error { constructor(issues: ReadonlyArray<StandardSchemaV1.Issue>); } /** * @internal * * @throws {ValidationError} {@link ValidationError} */ export declare function validate<TValue>(schema: StandardSchemaV1<TValue, TValue> | undefined, value: TValue): Promise<void>;