@just-in/core
Version:
A TypeScript-first framework for building adaptive digital health interventions.
10 lines • 532 B
TypeScript
import { StepReturnResult, ExecuteStepReturn } from './handler.type';
/**
* Executes a single step function, logging errors and results.
*
* @param step - The current step being executed (e.g., SHOULD_DECIDE, DECIDE, DO_ACTION).
* @param fn - The function to execute for the step.
* @returns {Promise<ExecuteStepReturn>} The result of the step execution.
*/
export declare function executeStep<T>(step: string, fn: () => Promise<StepReturnResult<T>>): Promise<ExecuteStepReturn<T>>;
//# sourceMappingURL=steps.helpers.d.ts.map