UNPKG

@schemeless/event-store-react-native

Version:

React Native compatible build of the [`@schemeless/event-store`](../event-store) runtime. It mirrors the Node.js implementation but swaps the internal queue implementation to [`react-native-better-queue`](https://github.com/YahyaASadiq/react-native-better

4 lines (3 loc) 339 B
import type { EventFlow, IEventStoreRepo } from '@schemeless/event-store-types'; import { SuccessEventObserver } from '@schemeless/event-store-types'; export declare const makeReplay: (eventFlows: EventFlow[], successEventObservers: SuccessEventObserver<any>[], eventStoreRepo: IEventStoreRepo) => (startFromId?: string) => Promise<void>;