assertIsInstructionWithAccounts

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

Type Parameters

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

Parameters

ParameterType
instructionTInstruction

Returns

asserts instruction is InstructionWithAccounts<TAccounts> & TInstruction

On this page