# @types/dexie-batch

> TypeScript definitions for dexie-batch

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

## Install

```sh
npm install @types/dexie-batch
pnpm add @types/dexie-batch
yarn add @types/dexie-batch
bun add @types/dexie-batch
```

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.4.7 |
| Published | 2023-11-07 |
| First published | 2019-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51434 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [dexie](https://npm.io/package/dexie.md) latest

## Recent versions

- 0.4.7 (latest) — 2023-11-07
- 0.4.3 (ts3.6) — 2021-07-08
- 0.4.2 (ts3.5) — 2021-03-08
- 0.4.1 (ts3.0) — 2020-05-15
- 0.4.0 (ts2.0) — 2019-08-02
- 0.4.6 — 2023-10-18
- 0.4.5 — 2023-10-10
- 0.4.4 — 2023-09-22

## README

# Installation
> `npm install --save @types/dexie-batch`

# Summary
This package contains type definitions for dexie-batch (https://github.com/raphinesse/dexie-batch#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dexie-batch.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dexie-batch/index.d.ts)
````ts
import { Dexie } from "dexie";

declare namespace DexieBatch {
    interface Options {
        batchSize: number;
        limit?: number | undefined;
    }
    type Callback<T> = (item: T, index: number) => void;
}

declare class DexieBatch {
    private readonly opts: DexieBatch.Options;

    constructor(opts: DexieBatch.Options);

    isParallel(): boolean;

    each<T>(collection: Dexie.Collection<T>, callback: DexieBatch.Callback<T>): Dexie.Promise<number>;
    eachBatch<T>(collection: Dexie.Collection<T>, callback: DexieBatch.Callback<T[]>): Dexie.Promise<number>;
    eachBatchParallel<T>(collection: Dexie.Collection<T>, callback: DexieBatch.Callback<T[]>): Dexie.Promise<number>;
    eachBatchSerial<T>(
        collection: Dexie.Collection<T>,
        callback: DexieBatch.Callback<T[]>,
        batchIdx?: number,
    ): Dexie.Promise<number>;
}

export as namespace DexieBatch;
export = DexieBatch;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
 * Dependencies: [dexie](https://npmjs.com/package/dexie)

# Credits
These definitions were written by [Florian Imdahl](https://github.com/ffflorian).

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