mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Allow excess properties for actions.
This commit is contained in:
parent
812083b9ec
commit
2c0e005581
10
types/pouch-redux-middleware/index.d.ts
vendored
10
types/pouch-redux-middleware/index.d.ts
vendored
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user