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) • 419 B
TypeScript
/**
* Never Schema implementation
*/
import { Schema } from '../types';
export interface NeverSchema extends Schema<never> {
readonly _tag: 'NeverSchema';
}
/**
* Creates a schema that validates never type (rejects all values)
*
* @returns A schema that validates never type
*
* @example
* const neverSchema = never();
* // All inputs will fail validation
*/
export declare function never(): NeverSchema;