@types/sqlite3-promise
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/sqlite3

Credits

These definitions were written by Jonathan Bredin.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/sqlite3-promise

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

3.95 kB

Total Files

5

Last publish

Collaborators

  • types