Represents Tuple, a syntactic sugar for Record.

Param: components

Type Parameters

  • T extends any[]

Hierarchy (view full)

Constructors

  • Type Parameters

    • T extends any[]

    Parameters

    Returns types.IDL.TupleClass<T>

Properties

_fields: [string, types.IDL.Type<any>][]
_components: types.IDL.Type<any>[]

Accessors

  • get name(): string
  • Returns string

Methods

  • Parameters

    • typeTable: TypeTable

    Returns void

  • Implement I in the IDL spec. Encode this type for the type table.

    Parameters

    • typeTable: TypeTable

    Returns ArrayBuffer

  • Returns null | types.IDL.Type<any>[]

  • Parameters

    • T: TypeTable

    Returns void

  • Type Parameters

    • D
    • R

    Parameters

    Returns R

  • Assert that JavaScript's x is the proper type represented by this Type.

    Parameters

    • x: any

    Returns x is T

  • Internal

    Encode the value. This needs to be public because it is used by encodeValue() from different types.

    Parameters

    • x: any[]

    Returns ArrayBuffer

  • Returns T

  • Returns string

  • Parameters

    • values: any[]

    Returns string