UNPKG

kist

Version:

Package Pipeline Processor

27 lines (26 loc) 919 B
import { StepInterface } from "../../interface/StepInterface"; import { AbstractProcess } from "../abstract/AbstractProcess"; /** * Represents a single step in a stage, encapsulating its execution logic. * This class manages the resolution and execution of actions associated * with each step. */ export declare class Step extends AbstractProcess { private name; private action; private options?; /** * Constructs a Step instance based on the provided step definition. * Dynamically resolves the action class from the registry. * * @param step - The step definition containing the step name, action name, * and options. * @throws Error if the specified action is not registered in the action * registry. */ constructor(step: StepInterface); /** * Executes the step by invoking its action's execute method. */ execute(): Promise<void>; }