From 2c0e005581d0714100300375007346919a1d07ba Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 1 Sep 2020 23:39:26 -0700 Subject: [PATCH] Allow excess properties for actions. --- types/pouch-redux-middleware/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; }; }