Skip to main content

TupleType <Elements, Rest>

Hierarchy

  • NodeTrait
    • TupleType

Index

Constructors

publicconstructor

  • Type parameters

    Parameters

    Returns TupleType<Elements, Rest>

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<Rest extends { infer: unknown } ? [...TupleToInfer<Elements>[], ...Rest<Rest>[infer][]] : TupleToInfer<Elements>> = {}

publicoptional_hooks

_hooks?: Hooks

public_id

_id: string = ...

public_isCommutative

_isCommutative: boolean = false

publicoptional_name

_name?: string

public_options

_options: TupleOptions<Rest> = {}

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

publicinfer

infer: Rest extends { infer: unknown } ? [...TupleToInfer<Elements>[], ...Rest<Rest>[infer][]] : TupleToInfer<Elements>

publicinput

input: Rest extends { infer: unknown } ? [...TupleToInput<Elements>[], ...Rest<Rest>[input][]] : TupleToInput<Elements>

publicitems

items: Node[]

Accessors

public_output

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

Methods

publicarray

publiccompile

  • compile(__namedParameters?: { formats?: boolean }): Schema<Rest extends { infer: unknown } ? [...TupleToInfer<Elements>[], ...Rest<Rest>[infer][]] : TupleToInfer<Elements>>
  • Parameters

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

    Returns Schema<Rest extends { infer: unknown } ? [...TupleToInfer<Elements>[], ...Rest<Rest>[infer][]] : TupleToInfer<Elements>>

publicdefault

  • default(value: Rest extends { infer: unknown } ? [...TupleToInput<Elements>[], ...Rest<Rest>[input][]] : TupleToInput<Elements>): DefaultType<TupleType<Elements, Rest>>
  • Parameters

    • value: Rest extends { infer: unknown } ? [...TupleToInput<Elements>[], ...Rest<Rest>[input][]] : TupleToInput<Elements>

    Returns DefaultType<TupleType<Elements, Rest>>

publicdescribe

  • describe(description: string): this
  • Parameters

    • description: string

    Returns this

publicjsonschema

  • jsonschema(schema: JsonSchema<Rest extends { infer: unknown } ? [...TupleToInfer<Elements>[], ...Rest<Rest>[infer][]] : TupleToInfer<Elements>>): this
  • Parameters

    • schema: JsonSchema<Rest extends { infer: unknown } ? [...TupleToInfer<Elements>[], ...Rest<Rest>[infer][]] : TupleToInfer<Elements>>

    Returns this

publicnullable

  • nullable(): NullableType<TupleType<Elements, Rest>>
  • Returns NullableType<TupleType<Elements, Rest>>

publicoptional

  • optional(): OptionalType<TupleType<Elements, Rest>>
  • Returns OptionalType<TupleType<Elements, Rest>>

publicreference

publicrest

  • rest<T>(rest: ConstExpr<T>): TupleType<Elements, T>
  • Type parameters

    Parameters

    • rest: ConstExpr<T>

    Returns TupleType<Elements, T>

publicvalidator

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

    • validator: Partial<ValidatorOptions> = {}

    Returns this