@stacksjs/ts-validation
Version:
A simple TypeScript starter kit using Bun.
9 lines • 341 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
}