@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.
9 lines (8 loc) • 369 B
TypeScript
import type { StandardSchemaV1 } from "@standard-schema/spec";
export declare class ValidationError extends Error {
constructor(issues: ReadonlyArray<StandardSchemaV1.Issue>);
}
/**
* @throws {ValidationError} {@link ValidationError}
*/
export declare function validate<TValue>(schema: StandardSchemaV1<TValue, TValue> | undefined, value: TValue): Promise<void>;