UNPKG

@aimee-blue/ab-service-kit

Version:
15 lines (13 loc) 414 B
import { echoEpic } from './testEpicMod'; import { SocketEpic, IAction } from './shared'; import { map } from 'rxjs/operators'; export function createTestEpic() { const epic: SocketEpic<IAction, IAction> = (...args) => echoEpic(...args).pipe( // map((item, i) => ({ ...item, i: i * 2 })) ); epic.actionSchemaByType = echoEpic.actionSchemaByType; epic.debugStats = true; return epic; }