ArrayType

flitter-orm/src/schema/types/Array~ ArrayType

Schema type representing an array of a single other schema type.


Constructor

new ArrayType()

Extends

Methods

(static) cast(value) → {Array.<*>}

Casts a value to an array if it is not already.

Parameters:
Name Type Description
value Array.<*> | *
Returns:
Type
Array.<*>

(static) validate(value) → {boolean}

Checks if an item can be cast to an array.

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