UNPKG

nope-validator

Version:
9 lines (8 loc) 419 B
import { NopePrimitive } from './NopePrimitive'; export declare class NopeBoolean extends NopePrimitive<boolean> { protected _type: string; true(message?: string): this; false(message?: string): this; validate(entry?: any, context?: Record<string | number, unknown>): string | undefined; validateAsync(entry?: any, context?: Record<string | number, unknown>): Promise<string | undefined>; }