Allow excess properties for actions.

This commit is contained in:
Daniel Rosenwasser 2020-09-01 23:39:26 -07:00 committed by GitHub
parent 812083b9ec
commit 2c0e005581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<T = {[field: string]: any}> = PouchDB.Core.IdMeta & T;
@ -23,10 +23,10 @@ export interface Path<T = {[field: string]: any}> {
queue?(...args: any[]): any;
docs?: any;
actions: {
remove(doc: Document<T>): Action;
update(doc: Document<T>): Action;
insert(doc: Document<T>): Action;
batchInsert(docs: Array<Document<T>>): Action;
remove(doc: Document<T>): AnyAction;
update(doc: Document<T>): AnyAction;
insert(doc: Document<T>): AnyAction;
batchInsert(docs: Array<Document<T>>): AnyAction;
};
}