diff --git a/types/pouch-redux-middleware/index.d.ts b/types/pouch-redux-middleware/index.d.ts index a3b215e23d..36a3ed77bb 100644 --- a/types/pouch-redux-middleware/index.d.ts +++ b/types/pouch-redux-middleware/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -import { Dispatch, Action, Middleware } from 'redux'; +import { Dispatch, AnyAction, Middleware } from 'redux'; import * as PouchDB from 'pouchdb'; export type Document = PouchDB.Core.IdMeta & T; @@ -23,10 +23,10 @@ export interface Path { queue?(...args: any[]): any; docs?: any; actions: { - remove(doc: Document): Action; - update(doc: Document): Action; - insert(doc: Document): Action; - batchInsert(docs: Array>): Action; + remove(doc: Document): AnyAction; + update(doc: Document): AnyAction; + insert(doc: Document): AnyAction; + batchInsert(docs: Array>): AnyAction; }; }