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
19 lines (18 loc) • 472 B
TypeScript
/**
* Symbol Schema implementation
*/
import { Schema } from '../types';
export interface SymbolSchema extends Schema<symbol> {
readonly _tag: 'SymbolSchema';
}
/**
* Creates a schema that validates Symbol values
*
* @returns A schema that validates Symbol values
*
* @example
* const symbolSchema = symbol();
* const mySymbol = Symbol('test');
* symbolSchema.toValidator().parse(mySymbol); // => mySymbol
*/
export declare function symbol(): SymbolSchema;