Skip to main content

ArrayType <Element>

Hierarchy

  • Node
  • NodeTrait
    • ArrayType

Index

Constructors

publicconstructor

Properties

public_attributes

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

Type declaration

  • generic: GenericAttributes
  • typescript: TypescriptAttributes

publicoptional_canReference

_canReference?: boolean

public_children

_children: [Node]

publicoptional_connections

_connections?: Node[]

public_definition

_definition: ThereforeNodeDefinition<Element[infer][]> = {}

publicoptional_hooks

_hooks?: Hooks

public_id

_id: string = ...

public_isCommutative

_isCommutative: boolean = false

publicoptional_name

_name?: string

public_options

_options: ArrayOptions = {}

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: array = ...

publicelement

element: Element

publicinfer

infer: Element[infer][]

publicinput

input: Element[input][]

Accessors

public_output

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

Methods

publicarbitrary

  • arbitrary(options: Partial<ArrayGenerator<Element[infer], number>>): ArrayType<Element>
  • Parameters

    • options: Partial<ArrayGenerator<Element[infer], number>>

    Returns ArrayType<Element>

publicarray

publiccompile

  • compile(__namedParameters?: { formats?: boolean }): Schema<Element[infer][]>
  • Parameters

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

    Returns Schema<Element[infer][]>

publicdefault

  • default(value: Element[input][]): DefaultType<ArrayType<Element>>
  • Parameters

    • value: Element[input][]

    Returns DefaultType<ArrayType<Element>>

publicdescribe

  • describe(description: string): this
  • Parameters

    • description: string

    Returns this

publicjsonschema

  • jsonschema(schema: JsonSchema<Element[infer][]>): this
  • Parameters

    • schema: JsonSchema<Element[infer][]>

    Returns this

publicmaxItems

  • maxItems(maxItems: number): ArrayType<Element>
  • Parameters

    • maxItems: number

    Returns ArrayType<Element>

publicminItems

  • minItems(minItems: number): ArrayType<Element>
  • Parameters

    • minItems: number

    Returns ArrayType<Element>

publicnonempty

publicnullable

publicoptional

publicreference

publicset

publicvalidator

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

    • validator: Partial<ValidatorOptions> = {}

    Returns this