Tuple
Algorand TypeScript / arc4 / Tuple
Defined in: arc4/encoded-types.ts:408
An arc4 encoded tuple of values
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”TTuple
Section titled “TTuple”TTuple extends readonly [ARC4Encoded, ...ARC4Encoded[]]
A type representing the native tuple of item types
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Tuple<
TTuple>():Tuple<TTuple>
Defined in: arc4/encoded-types.ts:415
Create a new Tuple with the default zero values for items
Returns
Section titled “Returns”Tuple<TTuple>
Overrides
Section titled “Overrides”Constructor
Section titled “Constructor”new Tuple<
TTuple>(…items):Tuple<TTuple>
Defined in: arc4/encoded-types.ts:420
Create a new Tuple with the specified items
Parameters
Section titled “Parameters”…TTuple
The tuple items
Returns
Section titled “Returns”Tuple<TTuple>
Overrides
Section titled “Overrides”ARC4Encoded.constructor
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get bytes():
bytes
Defined in: arc4/encoded-types.ts:102
Retrieve the encoded bytes for this type
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”length
Section titled “length”Get Signature
Section titled “Get Signature”get length():
TTuple["length"] &object&number
Defined in: arc4/encoded-types.ts:436
Returns the length of this tuple
Returns
Section titled “Returns”TTuple["length"] & object & number
native
Section titled “native”Get Signature
Section titled “Get Signature”get native():
TTuple
Defined in: arc4/encoded-types.ts:443
Returns the decoded native tuple (with arc4 encoded items)
Returns
Section titled “Returns”TTuple
Methods
Section titled “Methods”at<
TIndex>(index):TTuple[TIndex]
Defined in: arc4/encoded-types.ts:429
Returns the item at the specified index
Type Parameters
Section titled “Type Parameters”TIndex
Section titled “TIndex”TIndex extends string | number | symbol
Parameters
Section titled “Parameters”TIndex
The index of the item to get. Must be a positive literal representing a tuple index
Returns
Section titled “Returns”TTuple[TIndex]