Skip to content

Commit

Permalink
fix: Ammend createOffline middleware typing
Browse files Browse the repository at this point in the history
Adjust `createOffline`'s middleware typing from custom implementation to consume Redux's own `Middleware` type
  • Loading branch information
Calum Peak committed Nov 12, 2018
1 parent c6eeab8 commit f5ec573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ declare module '@redux-offline/redux-offline/lib/types' {
}

declare module '@redux-offline/redux-offline' {
import { createStore as createReduxStore, Store, StoreEnhancer, Dispatch, MiddlewareAPI } from 'redux';
import { createStore as createReduxStore, Store, StoreEnhancer, Dispatch, Middleware } from 'redux';

import { Config } from '@redux-offline/redux-offline/lib/types';

Expand All @@ -130,6 +130,6 @@ declare module '@redux-offline/redux-offline' {
preloadedState: T,
enhancer: StoreEnhancer<T>,
) => Store<T>,
middleware: (api: MiddlewareAPI<any>) => (next: Dispatch<any>) => Dispatch<any>,
middleware: Middleware
});
}

0 comments on commit f5ec573

Please sign in to comment.