Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents Tuple, a syntactic sugar for Record.

param

Type parameters

  • T: any[]

Hierarchy

Index

Constructors

constructor

Properties

Protected Readonly _components

_components: Type<any>[]

Protected Readonly _fields

_fields: [string, Type<any>][]

Accessors

name

  • get name(): string
  • Returns string

Methods

_buildTypeTableImpl

  • _buildTypeTableImpl(T: TypeTable): void

accept

  • accept<D, R>(v: Visitor<D, R>, d: D): R
  • Type parameters

    • D

    • R

    Parameters

    Returns R

buildTypeTable

  • buildTypeTable(typeTable: TypeTable): void

checkType

covariant

  • covariant(x: any): x is T
  • Assert that JavaScript's x is the proper type represented by this Type.

    Parameters

    • x: any

    Returns x is T

decodeValue

  • decodeValue(b: Pipe, t: Type<any>): T

display

  • display(): string

encodeType

  • encodeType(typeTable: TypeTable): Buffer
  • Implement I in the IDL spec. Encode this type for the type table.

    Parameters

    • typeTable: TypeTable

    Returns Buffer

encodeValue

  • encodeValue(x: any[]): Buffer
  • Encode the value. This needs to be public because it is used by encodeValue() from different types.

    Parameters

    • x: any[]

    Returns Buffer

tryAsTuple

  • tryAsTuple(): null | Type<any>[]

valueToString

  • valueToString(values: any[]): string

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Class
  • Class with type parameter
  • Method
  • Interface
  • Interface with type parameter
  • Enumeration
  • Inherited method
  • Protected property