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
21 lines (20 loc) • 1.18 kB
TypeScript
import { Schema, RefinableSchema, TransformableSchema, DefaultableSchema, NullableSchema, PredicateSchema, CustomErrorsSchema } from '../types';
/**
* BigInt schema interface
*/
export interface BigIntSchema extends Schema<bigint>, RefinableSchema<bigint, BigIntSchema>, TransformableSchema<bigint, BigIntSchema>, DefaultableSchema<bigint, BigIntSchema>, NullableSchema<bigint, BigIntSchema>, PredicateSchema<bigint, BigIntSchema>, CustomErrorsSchema<bigint, BigIntSchema> {
readonly _tag: 'BigIntSchema';
readonly min: (min: bigint, message?: string) => BigIntSchema;
readonly max: (max: bigint, message?: string) => BigIntSchema;
readonly positive: (message?: string) => BigIntSchema;
readonly negative: (message?: string) => BigIntSchema;
readonly nonPositive: (message?: string) => BigIntSchema;
readonly nonNegative: (message?: string) => BigIntSchema;
readonly multipleOf: (value: bigint, message?: string) => BigIntSchema;
readonly between: (min: bigint, max: bigint, message?: string) => BigIntSchema;
readonly fromString: () => Schema<bigint>;
}
/**
* Create a bigint schema
*/
export declare function bigint(): BigIntSchema;