Options
All
  • Public
  • Public/Protected
  • All
Menu

Boolean field.

example
const schema = fields.boolean();

schema.create(true);

Hierarchy

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

name

  • get name(): string

type

  • get type(): string

Methods

check

  • check(value: unknown): boolean

create

  • create(value: boolean): boolean

validate

  • validate(value: unknown, key?: string): true

Generated using TypeDoc