mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
node: improved EventEmitter's definition with this-typing
This commit is contained in:
1 parent
dade441471
commit
abc2bcfb85
28 files changed
+321
-359
No files matched your search
Vendored
+7
-7
@@ -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