UNPKG

@ts-bridge/cli

Version:

Bridge the gap between ES modules and CommonJS modules with an easy-to-use alternative to `tsc`.

22 lines 863 B
/** * A single step to execute in a series of steps. */ export type Step<Context extends Record<string, unknown>> = { name: string; condition?: (context: Context) => boolean; task: (context: Context) => void; }; /** * A list of steps to execute in series. */ export type Steps<Context extends Record<string, unknown>> = Readonly<Step<Context>[]>; /** * Execute a list of steps in series. Each step receives the context object, * and can conditionally execute based on the context. * * @param steps - The steps to execute. * @param context - The context object that will be passed to each step. * @param verbose - Whether to log each step as it is executed. */ export declare function executeSteps<Context extends Record<string, unknown>>(steps: Steps<Context>, context: Context, verbose?: boolean): void; //# sourceMappingURL=steps.d.ts.map