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) 414 B
/** * Null Schema implementation */ import { Schema } from '../types'; export interface NullSchema extends Schema<null> { readonly _tag: 'NullSchema'; } /** * Creates a schema that validates null values * * @returns A schema that validates null values * * @example * const nullSchema = nullType(); * nullSchema.toValidator().parse(null); // => null */ export declare function nullType(): NullSchema;