StringType
Hierarchy
- NodeTrait
- StringType
Index
Constructors
Properties
Accessors
Methods
Constructors
publicconstructor
Parameters
options: SchemaOptions<StringOptions, string>
Returns StringType
Properties
public_attributes
Type declaration
generic: GenericAttributes
typescript: TypescriptAttributes
publicoptional_canReference
publicoptional_children
publicoptional_connections
public_definition
publicoptional_hooks
public_id
public_isCommutative
publicoptional_name
public_options
publicoptional_sourcePath
publicoptional_transform
Type declaration
optionalaliasName?: (name: string) => string
Parameters
name: string
Returns string
optionalreferenceName?: (name: string) => string
Parameters
name: string
Returns string
optionalsymbolName?: (name: string) => string
Parameters
name: string
Returns string
public_type
publicinfer
publicinput
Accessors
public_output
Returns undefined | (TypescriptOutput | GenericOutput)[]
Methods
publicarbitrary
Parameters
options: Partial<StringConstraints>
Returns StringType
publicarray
Parameters
options: SchemaOptions<ArrayOptions> = {}
Returns ArrayType<StringType>
publicbase64
Returns StringType
publiccompile
Parameters
__namedParameters: { formats?: boolean } = {}
optionalformats: boolean = true
Returns Schema<string>
publicdate
Returns StringType
publicdatetime
Returns StringType
publicdefault
Parameters
value: string
Returns DefaultType<StringType>
publicdescribe
Parameters
description: string
Returns this
publicduration
Returns StringType
publicemail
Returns StringType
publichostname
Returns StringType
publicipv4
Returns StringType
publicipv6
Returns StringType
publicjsonschema
Parameters
schema: JsonSchema<string>
Returns this
publicmaxLength
Parameters
maxLength: number
Returns StringType
publicminLength
Parameters
minLength: number
Returns StringType
publicnullable
Returns NullableType<StringType>
publicoptional
Returns OptionalType<StringType>
publicreference
Parameters
options: SchemaOptions<object> = {}
Returns RefType<StringType>
publicregex
Parameters
pattern: string | RegExp
Returns StringType
publictime
Returns StringType
publiculid
Returns StringType
publicuri
Returns StringType
publicuuid
Returns StringType
publicvalidator
Parameters
validator: Partial<ValidatorOptions> = {}
Returns this