UNPKG

359 BTypeScriptView Raw
1import { Type } from './type';
2/**
3 * Boolean type
4 */
5export declare class BooleanType implements Type<boolean> {
6 readonly name = "boolean";
7 isInstance(value: any): boolean;
8 defaultValue(): boolean;
9 isCoercible(value: any): boolean;
10 coerce(value: any): any;
11 serialize(value: boolean | null | undefined): boolean | null | undefined;
12}