Search
Preparing search index...
The search index is not available
solid-schema
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
solid-schema
<internal>
StringField
Class StringField
String field.
example
const
schema
=
fields
.
string
();
schema
.
create
(
"hello"
);
Hierarchy
FieldModel
<
string
>
StringField
Index
Constructors
constructor
Properties
options
Accessors
name
type
Methods
check
create
validate
Constructors
constructor
new
String
Field
(
options
?:
StringFieldOptions
)
:
StringField
Parameters
Optional
options:
StringFieldOptions
Returns
StringField
Properties
Optional
Readonly
options
options
?:
StringFieldOptions
Accessors
name
get
name
(
)
:
string
Returns
string
type
get
type
(
)
:
string
Returns
string
Methods
check
check
(
value
:
unknown
)
:
boolean
Parameters
value:
unknown
Returns
boolean
create
create
(
value
:
string
)
:
string
Parameters
value:
string
Returns
string
validate
validate
(
value
:
unknown
, key
?:
string
)
:
true
Parameters
value:
unknown
key:
string
= "value"
Returns
true
Exports
<internal>
fields
String
Field
constructor
options
name
type
check
create
validate
Generated using
TypeDoc
String field.