UNPKG

redux-restate

Version:

<div align="center"> <h1>redux-restate</h1> <br/> <img src="https://cdn.rawgit.com/theKashey/restate/1d67d86d/images/logo.svg" alt="restate" width="600" align="center"> <br/> <br/> Restate base layer. <br/> <br/> <a href="https://circlec

21 lines (20 loc) 763 B
declare module 'redux-restate' { /** * Creates syntetic redux store * @param {ObjectOf<ReduxStore>} stores * @param {ObjectOf<State>) => any} createState * @param {(dispatches: ObjectOf<dispatch>, event: any) => void} onDispatch * @param {{async?: boolean; areStatesEqual?: ((oldStore: any, newStore: any) => boolean)}} options * @return {ReduxStore} */ export default function restate<T>( stores: { [K in keyof T]: any }, createState: (states: { [K in keyof T]: any }) => any, onDispatch: (dispatches: { [K in keyof T]: any }, event: any) => void, options: { async?: boolean; onUpdate?: (triggerUpdate: () => void) => void; areStatesEqual?: (oldStore: any, newStore: any) => boolean; }, ): any; }