node-sagas
Version:
Library for handling distributed transactions in the microservices architecture
18 lines • 513 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const step_1 = require("./step");
const saga_flow_1 = require("./saga-flow");
const saga_1 = require("./saga");
class Factory {
createSaga(steps) {
return new saga_1.Saga(this.createSagaFlow(steps));
}
createSagaFlow(steps) {
return new saga_flow_1.SagaFlow(steps);
}
createStep(name = '') {
return new step_1.Step(name);
}
}
exports.default = Factory;
//# sourceMappingURL=factory.js.map