SingleInstructionPlan

type SingleInstructionPlan<TInstruction> = Readonly<{
  instruction: TInstruction;
  kind: "single";
}>;

A plan that contains a single instruction.

This is a simple instruction wrapper that transforms an instruction into a plan.

You may use the singleInstructionPlan helper to create objects of this type.

Type Parameters

Type ParameterDefault type
TInstruction extends InstructionInstruction

Example

const plan = singleInstructionPlan(instructionA);
plan satisfies SingleInstructionPlan;

See

singleInstructionPlan

On this page