UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

7 lines 415 B
import { BaseValidator } from './base'; import type { CustomValidatorType, ValidationNames } from '../types'; export declare function custom<T>(validationFn: (value: T) => boolean, message: string): CustomValidator<T>; export declare class CustomValidator<T> extends BaseValidator<T> implements CustomValidatorType<T> { name: ValidationNames; constructor(validationFn: (value: T) => boolean, message: string); }