BooleanType

flitter-orm/src/schema/types/Boolean~ BooleanType

Schema type representing a boolean value.


Constructor

new BooleanType()

Extends

Methods

(static) cast(value) → {boolean}

Casts the specified value to boolean.

Parameters:
Name Type Description
value *
Returns:
Type
boolean

(static) validate(value) → {boolean}

Determines whether a value can be cast to boolean.

Parameters:
Name Type Description
value *
Returns:
  • always true
Type
boolean