提交 b75dc69f 编写于 作者: B Benjamin Pasero

update sqlite3.d.ts

上级 5c720a08
......@@ -29,7 +29,7 @@ declare module 'sqlite3' {
changes: number;
}
export class Statement {
export class Statement extends events.EventEmitter {
bind(callback?: (err: Error | null) => void): this;
bind(...params: any[]): this;
......
......@@ -196,7 +196,6 @@ export class SQLiteStorage {
this.logger.error(`Error (statement): ${error} (${sql})`);
};
// @ts-ignore
stmt.on('error', statementErrorListener);
stmt.finalize(error => {
......@@ -204,7 +203,6 @@ export class SQLiteStorage {
statementErrorListener(error);
}
// @ts-ignore
stmt.removeListener('error', statementErrorListener);
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册