isInstructionWithAccounts

function isInstructionWithAccounts<TAccounts, TInstruction>(
    instruction,
): 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

instruction is InstructionWithAccounts<TAccounts> & TInstruction

On this page