Interface BooleanSchema

a schema that validates a boolean value

interface BooleanSchema {
    metadata?: unknown;
    nullable?: boolean;
    type: "boolean";
}

Properties

metadata?: unknown

optional metadata on a schema

nullable?: boolean

a key indicating if a type can be null

type: "boolean"

the type