import { Step } from './step' ; import { SagaFlow } from './saga-flow' ; import { Saga } from './saga' ; export default class Factory < T > { public createSaga ( steps ) { return new Saga < T > ( this . createSagaFlow ( steps ) ) ; } public createSagaFlow ( steps ) { return new SagaFlow < T > ( steps ) ; } public createStep ( name = '' ) { return new Step < T > ( name ) ; } }