StringType

flitter-orm/src/schema/types/String~ StringType

Schema type representing a single string.


Constructor

new StringType()

Extends

Methods

(static) cast(value) → {string}

Casts the specified value to a string.

Parameters:
Name Type Description
value *
Returns:
Type
string

(static) validate(value) → {boolean}

Determines whether the specified value can be cast to a string.

Parameters:
Name Type Description
value *
Returns:
Type
boolean