TupleClass
Defined in: packages/candid/src/idl.ts:1355
Represents Tuple, a syntactic sugar for Record.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”T
extends any
[]
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TupleClass<
T
>(_components
):TupleClass
<T
>
Defined in: packages/candid/src/idl.ts:1366
Parameters
Section titled “Parameters”_components
Section titled “_components”Type
<any
>[]
Returns
Section titled “Returns”TupleClass
<T
>
Overrides
Section titled “Overrides”Properties
Section titled “Properties”_components
Section titled “_components”
protected
readonly
_components:Type
<any
>[]
Defined in: packages/candid/src/idl.ts:1364
_fields
Section titled “_fields”
readonly
_fields: [string
,Type
<any
>][]
Defined in: packages/candid/src/idl.ts:1212
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”fieldsAsObject
Section titled “fieldsAsObject”Get Signature
Section titled “Get Signature”get fieldsAsObject():
Record
<number
,Type
>
Defined in: packages/candid/src/idl.ts:1326
Returns
Section titled “Returns”Record
<number
, Type
>
Inherited from
Section titled “Inherited from”Get Signature
Section titled “Get Signature”get name():
string
Defined in: packages/candid/src/idl.ts:1334
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”typeName
Section titled “typeName”Get Signature
Section titled “Get Signature”get typeName():
IdlTypeName
Defined in: packages/candid/src/idl.ts:1356
Returns
Section titled “Returns”IdlTypeName
Overrides
Section titled “Overrides”Methods
Section titled “Methods”_buildTypeTableImpl()
Section titled “_buildTypeTableImpl()”_buildTypeTableImpl(
T
):void
Defined in: packages/candid/src/idl.ts:1261
Parameters
Section titled “Parameters”TypeTable
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”RecordClass
._buildTypeTableImpl
accept()
Section titled “accept()”accept<
D
,R
>(v
,d
):R
Defined in: packages/candid/src/idl.ts:1373
Type Parameters
Section titled “Type Parameters”D
R
Parameters
Section titled “Parameters”Visitor
<D
, R
>
D
Returns
Section titled “Returns”R
Overrides
Section titled “Overrides”buildTypeTable()
Section titled “buildTypeTable()”buildTypeTable(
typeTable
):void
Defined in: packages/candid/src/idl.ts:217
Parameters
Section titled “Parameters”typeTable
Section titled “typeTable”TypeTable
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”checkType()
Section titled “checkType()”checkType(
t
):ConstructType
<Record
<string
,any
>>
Defined in: packages/candid/src/idl.ts:264
Parameters
Section titled “Parameters”Returns
Section titled “Returns”ConstructType
<Record
<string
, any
>>
Inherited from
Section titled “Inherited from”covariant()
Section titled “covariant()”covariant(
x
):x is T
Defined in: packages/candid/src/idl.ts:1377
Assert that JavaScript’s x
is the proper type represented by this
Type.
Parameters
Section titled “Parameters”any
Returns
Section titled “Returns”x is T
Overrides
Section titled “Overrides”decodeValue()
Section titled “decodeValue()”decodeValue(
b
,t
):T
Defined in: packages/candid/src/idl.ts:1401
Parameters
Section titled “Parameters”Returns
Section titled “Returns”T
Overrides
Section titled “Overrides”display()
Section titled “display()”display():
string
Defined in: packages/candid/src/idl.ts:1421
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”encodeType()
Section titled “encodeType()”encodeType(
typeTable
):Uint8Array
<ArrayBufferLike
>
Defined in: packages/candid/src/idl.ts:274
Implement I
in the IDL spec.
Encode this type for the type table.
Parameters
Section titled “Parameters”typeTable
Section titled “typeTable”TypeTable
Returns
Section titled “Returns”Uint8Array
<ArrayBufferLike
>
Inherited from
Section titled “Inherited from”encodeValue()
Section titled “encodeValue()”encodeValue(
x
):Uint8Array
Defined in: packages/candid/src/idl.ts:1396
Internal
Encode the value. This needs to be public because it is used by encodeValue() from different types.
Parameters
Section titled “Parameters”any
[]
Returns
Section titled “Returns”Uint8Array
Overrides
Section titled “Overrides”tryAsTuple()
Section titled “tryAsTuple()”tryAsTuple():
null
|Type
<any
>[]
Defined in: packages/candid/src/idl.ts:1223
Returns
Section titled “Returns”null
| Type
<any
>[]
Inherited from
Section titled “Inherited from”valueToString()
Section titled “valueToString()”valueToString(
values
):string
Defined in: packages/candid/src/idl.ts:1426
Parameters
Section titled “Parameters”values
Section titled “values”any
[]
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”[hasInstance]()
Section titled “[hasInstance]()”
static
[hasInstance]<T
>(instance
):instance is TupleClass<T>
Defined in: packages/candid/src/idl.ts:1360
Type Parameters
Section titled “Type Parameters”T
extends any
[]
Parameters
Section titled “Parameters”instance
Section titled “instance”any
Returns
Section titled “Returns”instance is TupleClass<T>