# @types/transform-pouch

> TypeScript definitions for transform-pouch

Latest version **1.0.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2023-11-07 |
| First published | 2021-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.6 (latest) — 2023-11-07
- 1.0.4 (ts4.3) — 2023-09-12
- 1.0.1 (ts3.9) — 2022-03-30
- 1.0.0 (ts3.5) — 2021-04-20
- 1.0.5 — 2023-10-18
- 1.0.3 — 2023-08-22
- 1.0.2 — 2023-03-22

## README

# Installation
> `npm install --save @types/transform-pouch`

# Summary
This package contains type definitions for transform-pouch (https://github.com/pouchdb-community/transform-pouch).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/transform-pouch.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/transform-pouch/index.d.ts)
````ts
/// <reference types="pouchdb-core" />

declare namespace PouchDB {
    interface Database<Content extends {} = {}> {
        transform<NewContent extends {}>(config: {
            incoming?(doc: Core.Document<Content>): Core.Document<NewContent> | Promise<Core.Document<NewContent>>;
            outgoing?(doc: Core.Document<NewContent>): Core.Document<Content> | Promise<Core.Document<Content>>;
        }): void;
        // api.filter provided for backwards compat with the old "filter-pouch"
        filter<NewContent extends {}>(config: {
            incoming?(doc: Core.Document<Content>): Core.Document<NewContent> | Promise<Core.Document<NewContent>>;
            outgoing?(doc: Core.Document<NewContent>): Core.Document<Content> | Promise<Core.Document<Content>>;
        }): void;
    }
}

// eslint-disable-next-line @definitelytyped/no-declare-current-package
declare module "transform-pouch" {
    const plugin: PouchDB.Plugin & { transform: () => void; filter: () => void };
    export = plugin;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/pouchdb-core](https://npmjs.com/package/@types/pouchdb-core)

# Credits
These definitions were written by [Lucas Rainett](https://github.com/lucasrainett).

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