mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 11:51:10 +08:00
node: improved EventEmitter's definition with this-typing
This commit is contained in:
14
sqlite3/sqlite3.d.ts
vendored
14
sqlite3/sqlite3.d.ts
vendored
@@ -68,13 +68,13 @@ declare module "sqlite3" {
|
||||
|
||||
public serialize(callback?: () => void): void;
|
||||
public parallelize(callback?: () => void): void;
|
||||
|
||||
public on(event: "trace", listener: (sql: string) => void): Database;
|
||||
public on(event: "profile", listener: (sql: string, time: number) => void): Database;
|
||||
public on(event: "error", listener: (err: Error) => void): Database;
|
||||
public on(event: "open", listener: () => void): Database;
|
||||
public on(event: "close", listener: () => void): Database;
|
||||
public on(event: string, listener: Function): Database;
|
||||
|
||||
public on(event: "trace", listener: (sql: string) => void): this;
|
||||
public on(event: "profile", listener: (sql: string, time: number) => void): this;
|
||||
public on(event: "error", listener: (err: Error) => void): this;
|
||||
public on(event: "open", listener: () => void): this;
|
||||
public on(event: "close", listener: () => void): this;
|
||||
public on(event: string, listener: Function): this;
|
||||
}
|
||||
|
||||
function verbose(): void;
|
||||
|
||||
Reference in New Issue
Block a user