core/stores/step.store.ts
core/stores/step.store.ts is a file in GovLab Pipeline. 11 lines of code and 2 definitions.
import type { StepOutput } from "#types/report.types";
import type { StepStore } from "#types/stage.types";
export const createStepStore = function createStepStore(): StepStore {
const collected: StepOutput[] = [];
return {
collect: (output) => {
collected.push(output);
},
outputs: () => [...collected],
};
};