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) 324 B
import { EventFlow, IEventStoreRepo, SuccessEventObserver } from '@schemeless/event-store-types'; import { EventStore } from './EventStore.types'; export declare const makeEventStore: (eventStoreRepo: IEventStoreRepo) => (eventFlows: EventFlow[], successEventObservers?: SuccessEventObserver<any>[]) => Promise<EventStore>;