Skip to content

Tuple

Algorand TypeScript


Algorand TypeScript / arc4 / Tuple

Defined in: arc4/encoded-types.ts:408

An arc4 encoded tuple of values

TTuple extends readonly [ARC4Encoded, ...ARC4Encoded[]]

A type representing the native tuple of item types

new Tuple<TTuple>(): Tuple<TTuple>

Defined in: arc4/encoded-types.ts:415

Create a new Tuple with the default zero values for items

Tuple<TTuple>

ARC4Encoded.constructor

new Tuple<TTuple>(…items): Tuple<TTuple>

Defined in: arc4/encoded-types.ts:420

Create a new Tuple with the specified items

TTuple

The tuple items

Tuple<TTuple>

ARC4Encoded.constructor

get bytes(): bytes

Defined in: arc4/encoded-types.ts:102

Retrieve the encoded bytes for this type

bytes

ARC4Encoded.bytes


get length(): TTuple["length"] & object & number

Defined in: arc4/encoded-types.ts:436

Returns the length of this tuple

TTuple["length"] & object & number


get native(): TTuple

Defined in: arc4/encoded-types.ts:443

Returns the decoded native tuple (with arc4 encoded items)

TTuple

at<TIndex>(index): TTuple[TIndex]

Defined in: arc4/encoded-types.ts:429

Returns the item at the specified index

TIndex extends string | number | symbol

TIndex

The index of the item to get. Must be a positive literal representing a tuple index

TTuple[TIndex]