assertAccountsDecoded
Call Signature
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<TData | ReadonlyUint8Array, TAddress>[] |
Returns
asserts accounts is Account<TData, TAddress>[]
Example
Call Signature
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<TData | ReadonlyUint8Array, TAddress>[] |
Returns
asserts accounts is MaybeAccount<TData, TAddress>[]