# @types/sqlite3-promise

> TypeScript definitions for sqlite3-promise

Latest version **1.0.4** (published 2025-02-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/sqlite3-promise
pnpm add @types/sqlite3-promise
yarn add @types/sqlite3-promise
bun add @types/sqlite3-promise
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2025-02-08 |
| First published | 2019-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51448 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/sqlite3](https://npm.io/package/@types/sqlite3.md) <4

## Recent versions

- 1.0.4 (latest) — 2025-02-08
- 1.0.3 (ts4.5) — 2023-11-07
- 1.0.0 (ts2.1) — 2019-09-24
- 1.0.2 — 2023-10-18
- 1.0.1 — 2023-09-25

## README

# Installation
> `npm install --save @types/sqlite3-promise`

# Summary
This package contains type definitions for sqlite3-promise (https://github.com/Aminadav/node-sqlite3-promise).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sqlite3-promise.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sqlite3-promise/index.d.ts)
````ts
import * as sqlite3 from "sqlite3";
export * from "sqlite3";

declare module "sqlite3" {
    interface Database {
        allAsync(sql: string): Promise<any[]>;
        closeAsync(): Promise<void>;
        eachAsync(sql: string, cb?: (this: Statement, err: Error | null, row: any) => void): Promise<number>;
        eachAsync(
            sql: string,
            params: any,
            cb?: (this: Statement, err: Error | null, row: any) => void,
        ): Promise<number>;
        execAsync(sql: string): Promise<Statement>;
        getAsync(sql: string): Promise<any>;
        runAsync(sql: string): Promise<void>;
    }
}

````

### Additional Details
 * Last updated: Sat, 08 Feb 2025 07:02:42 GMT
 * Dependencies: [@types/sqlite3](https://npmjs.com/package/@types/sqlite3)

# Credits
These definitions were written by [Jonathan Bredin](https://github.com/jonathanlb).

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