UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

12 lines 490 B
import { BaseValidator } from './base'; import type { BlobValidatorType, ValidationNames } from '../types'; // Export a function to create blob validators export declare function blob(): BlobValidator; export declare class BlobValidator extends BaseValidator<string> implements BlobValidatorType { name: ValidationNames; constructor(); min(min: number): this; max(max: number): this; length(length: number): this; custom(fn: (value: string) => boolean, message: string): this; }