assertIsInstructionWithAccounts

function assertIsInstructionWithAccounts<TAccounts, TInstruction>(
    instruction,
): asserts instruction is InstructionWithAccounts<TAccounts> &
    TInstruction;

Type Parameters

Type ParameterDefault type
TAccounts extends readonly (/api/functions/ | AccountLookupMeta<string, string> | AccountMeta<string>)[]readonly (/api/functions/ | AccountLookupMeta<string, string> | AccountMeta<string>)[]
TInstruction extends Instruction<string, readonly (/api/functions/ | AccountLookupMeta<string, string> | AccountMeta<string>)[]>Instruction<string, readonly (/api/functions/ | AccountLookupMeta<string, string> | AccountMeta<string>)[]>

Parameters

ParameterType
instructionTInstruction

Returns

asserts instruction is InstructionWithAccounts<TAccounts> & TInstruction

On this page