isTransactionPlan
Checks if the given value is a TransactionPlan.
This type guard checks the planType property to determine if the value
is a transaction plan. This is useful when you have a value that could be
an InstructionPlan, TransactionPlan, or TransactionPlanResult
and need to narrow the type.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check. |
Returns
value is TransactionPlan
true if the value is a transaction plan, false otherwise.