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) • 479 B
TypeScript
/**
* Undefined Schema implementation
*/
import { Schema } from '../types';
export interface UndefinedSchema extends Schema<undefined> {
readonly _tag: 'UndefinedSchema';
}
/**
* Creates a schema that validates undefined values
*
* @returns A schema that validates undefined values
*
* @example
* const undefinedSchema = undefinedType();
* undefinedSchema.toValidator().parse(undefined); // => undefined
*/
export declare function undefinedType(): UndefinedSchema;