# @types/pouch-redux-middleware

> TypeScript definitions for pouch-redux-middleware

Latest version **1.2.6** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/pouch-redux-middleware
pnpm add @types/pouch-redux-middleware
yarn add @types/pouch-redux-middleware
bun add @types/pouch-redux-middleware
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.2.6 |
| Published | 2025-10-24 |
| First published | 2016-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51418 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/pouch-redux-middleware
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pouch-redux-middleware
- npm.io page: https://npm.io/package/@types/pouch-redux-middleware

## Dependencies (2)

- [redux](https://npm.io/package/redux.md) ^3.6.0
- [@types/pouchdb](https://npm.io/package/@types/pouchdb.md) *

## Recent versions

- 1.2.6 (latest) — 2025-10-24
- 1.2.5 (ts5.1) — 2023-11-07
- 1.2.2 (ts4.2) — 2022-04-23
- 1.2.1 (ts3.5) — 2020-11-23
- 1.2.0 (ts2.5) — 2019-09-24
- 0.5.0 (ts2.1) — 2016-12-23
- 1.2.4 — 2023-10-18
- 1.2.3 — 2023-09-24
- 0.5.5 — 2017-10-25
- 0.5.4 — 2017-10-05
- 0.5.3 — 2017-08-31
- 0.5.2 — 2017-08-01
- 0.5.1 — 2017-06-15

## README

# Installation
> `npm install --save @types/pouch-redux-middleware`

# Summary
This package contains type definitions for pouch-redux-middleware (https://github.com/pgte/pouch-redux-middleware).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pouch-redux-middleware.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pouch-redux-middleware/index.d.ts)
````ts
import PouchDB = require("pouchdb");
import { AnyAction, Dispatch, Middleware } from "redux";

export type Document<T = { [field: string]: any }> = PouchDB.Core.IdMeta & T;

export interface Path<T extends {} = { [field: string]: any }> {
    path: string;
    db: PouchDB.Database<T>;
    scheduleRemove?(doc: Document<T>): void;
    scheduleInset?(doc: Document<T>): void;
    propagateDelete?(doc: Document<T>, dispatch: Dispatch<any>): void;
    propagateBatchInsert?(doc: Array<Document<T>>, dispatch: Dispatch<any>): void;
    propagateInsert?(doc: Document<T>, dispatch: Dispatch<any>): void;
    propagateUpdate?(doc: Document<T>, dispatch: Dispatch<any>): void;
    handleResponse?(err: Error, data: any, errorCallback: (err: Error) => void): void;
    initialBatchDispatched?(err?: Error): void;
    queue?(...args: any[]): any;
    docs?: any;
    actions: {
        remove(doc: Document<T>): AnyAction;
        update(doc: Document<T>): AnyAction;
        insert(doc: Document<T>): AnyAction;
        batchInsert(docs: Array<Document<T>>): AnyAction;
    };
}

export default function PouchMiddlewareFactory<T extends {} = { [field: string]: any }>(
    paths?: Array<Path<T>> | Path<T>,
): Middleware;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/pouchdb](https://npmjs.com/package/@types/pouchdb), [redux](https://npmjs.com/package/redux)

# Credits
These definitions were written by [Adam Charron](https://github.com/charrondev).

---
_Source: https://npm.io/package/@types/pouch-redux-middleware · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
