Skip to content

TxnFor

Algorand TypeScript


Algorand TypeScript / itxn / itxn / TxnFor

TxnFor<TFields> = TFields extends [{ submit: TTxn; }, ...(infer TRest extends [...ItxnParams[]])] ? readonly [TTxn, ...TxnFor<TRest>] : []

Defined in: itxn.ts:980

Conditional type which returns the matching InnerTransaction types for a given tuple of ItxnParams types

TFields extends [...ItxnParams[]]