Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TupleType

Represents a tuple type.

let value: [string,boolean];

Hierarchy

Index

Constructors

constructor

Properties

elements

elements: Type[]

The ordered type elements of the tuple type.

type

type: string = "tuple"

The type name identifier.

Methods

clone

equals

  • Test whether this type equals the given type.

    Parameters

    • type: TupleType

      The type that should be checked for equality.

    Returns boolean

    TRUE if the given type equals this type, FALSE otherwise.

toObject

  • toObject(): any

toString

  • toString(): string

Static isTypeListEqual

  • isTypeListEqual(a: Type[], b: Type[]): boolean

Static isTypeListSimiliar

  • isTypeListSimiliar(a: Type[], b: Type[]): boolean

Generated using TypeDoc