UNPKG

veffect

Version:

powerful TypeScript validation library built on the robust foundation of Effect combining exceptional type safety, high performance, and developer experience. Taking inspiration from Effect's functional principles, VEffect delivers a balanced approach tha

18 lines (17 loc) 464 B
/** * Void Schema implementation (accepts undefined) */ import { Schema } from '../types'; export interface VoidSchema extends Schema<void> { readonly _tag: 'VoidSchema'; } /** * Creates a schema that validates void values (accepts undefined) * * @returns A schema that validates void values * * @example * const voidSchema = voidType(); * voidSchema.toValidator().parse(undefined); // => undefined */ export declare function voidType(): VoidSchema;