@stacksjs/ts-validation
Version:
A simple TypeScript starter kit using Bun.
10 lines (9 loc) • 342 B
TypeScript
import type { Validator } from './base';
export declare interface IsBooleanOptions {
loose?: boolean
}
export declare interface BooleanValidatorType extends Validator<boolean> {
isTrue: () => BooleanValidatorType
isFalse: () => BooleanValidatorType
custom: (fn: (value: boolean) => boolean, message: string) => BooleanValidatorType
}