// Type definitions for sqlite3-promise 1.0 // Project: https://github.com/Aminadav/node-sqlite3-promise // Definitions by: Jonathan Bredin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 import * as sqlite3 from 'sqlite3'; export * from 'sqlite3'; declare module 'sqlite3' { interface Database { allAsync(sql: string): Promise; closeAsync(): Promise; eachAsync(sql: string, cb?: (this: Statement, err: Error | null, row: any) => void): Promise; eachAsync(sql: string, params: any, cb?: (this: Statement, err: Error | null, row: any) => void): Promise; execAsync(sql: string): Promise; getAsync(sql: string): Promise; runAsync(sql: string): Promise; } }