Skip to main content

StringType

Hierarchy

  • NodeTrait
    • StringType

Index

Constructors

publicconstructor

Properties

public_attributes

_attributes: { generic: GenericAttributes; typescript: TypescriptAttributes } = ...

Type declaration

  • generic: GenericAttributes
  • typescript: TypescriptAttributes

publicoptional_canReference

_canReference?: boolean

publicoptional_children

_children?: Node[]

publicoptional_connections

_connections?: Node[]

public_definition

_definition: ThereforeNodeDefinition<string> = {}

publicoptional_hooks

_hooks?: Hooks

public_id

_id: string = ...

public_isCommutative

_isCommutative: boolean = true

publicoptional_name

_name?: string

public_options

_options: StringOptions = {}

publicoptional_sourcePath

_sourcePath?: string

publicoptional_transform

_transform?: { aliasName?: (name: string) => string; referenceName?: (name: string) => string; symbolName?: (name: string) => string }

Type declaration

  • optionalaliasName?: (name: string) => string
      • (name: string): string
      • Parameters

        • name: string

        Returns string

  • optionalreferenceName?: (name: string) => string
      • (name: string): string
      • Parameters

        • name: string

        Returns string

  • optionalsymbolName?: (name: string) => string
      • (name: string): string
      • Parameters

        • name: string

        Returns string

public_type

_type: string = ...

publicinfer

infer: string

publicinput

input: string

Accessors

public_output

  • get _output(): undefined | (TypescriptOutput | GenericOutput)[]
  • Returns undefined | (TypescriptOutput | GenericOutput)[]

Methods

publicarbitrary

  • arbitrary(options: Partial<StringConstraints>): StringType
  • Parameters

    • options: Partial<StringConstraints>

    Returns StringType

publicarray

publicbase64

publiccompile

  • compile(__namedParameters?: { formats?: boolean }): Schema<string>
  • Parameters

    • __namedParameters: { formats?: boolean } = {}
      • optionalformats: boolean = true

    Returns Schema<string>

publicdate

publicdatetime

publicdefault

  • Parameters

    • value: string

    Returns DefaultType<StringType>

publicdescribe

  • describe(description: string): this
  • Parameters

    • description: string

    Returns this

publicduration

publicemail

publichostname

publicipv4

publicipv6

publicjsonschema

  • jsonschema(schema: JsonSchema<string>): this
  • Parameters

    • schema: JsonSchema<string>

    Returns this

publicmaxLength

publicminLength

publicnullable

  • Returns NullableType<StringType>

publicoptional

  • Returns OptionalType<StringType>

publicreference

publicregex

  • Parameters

    • pattern: string | RegExp

    Returns StringType

publictime

publiculid

publicuri

publicuuid

publicvalidator

  • validator(validator?: Partial<ValidatorOptions>): this
  • Parameters

    • validator: Partial<ValidatorOptions> = {}

    Returns this