UNPKG

@drieam/common

Version:

Default Drieam api wrapper

7 lines (6 loc) 430 B
import { Store, Dispatch, AnyAction } from "redux"; import * as api from "@drieam/api"; import { NotificationApi } from "antd/lib/notification"; import * as types from "../../types"; declare function errorHandlingMiddleware(parentOptions: types.StoreOptions, notificationApi?: NotificationApi): (store: Store) => (next: Dispatch<AnyAction>) => (action: api.BaseAction) => api.BaseAction; export { errorHandlingMiddleware };