Functions
assertAccountsDecoded
Call Signature
assertAccountsDecoded<
TData
,TAddress
>(accounts
):asserts accounts is Account<TData, TAddress>[]
Asserts that all input accounts store decoded data, ie. not a Uint8Array
.
As with assertAccountDecoded it does not check the shape of the data matches the decoded
type, only that it is not a Uint8Array
.
Type Parameters
Type Parameter | Default type |
---|---|
TData extends object | - |
TAddress extends string | string |
Parameters
Parameter | Type |
---|---|
accounts | Account <ReadonlyUint8Array | TData , TAddress >[] |
Returns
asserts accounts is Account<TData, TAddress>[]
Example
Call Signature
assertAccountsDecoded<
TData
,TAddress
>(accounts
):asserts accounts is MaybeAccount<TData, TAddress>[]
Asserts that all input accounts store decoded data, ie. not a Uint8Array
.
As with assertAccountDecoded it does not check the shape of the data matches the decoded
type, only that it is not a Uint8Array
.
Type Parameters
Type Parameter | Default type |
---|---|
TData extends object | - |
TAddress extends string | string |
Parameters
Parameter | Type |
---|---|
accounts | MaybeAccount <ReadonlyUint8Array | TData , TAddress >[] |
Returns
asserts accounts is MaybeAccount<TData, TAddress>[]