node: improved EventEmitter's definition with this-typing

This commit is contained in:
Ilya Mochalov
2016-02-25 00:38:02 +05:00
parent dade441471
commit abc2bcfb85
28 changed files with 321 additions and 359 deletions

14
sqlite3/sqlite3.d.ts vendored
View File

@@ -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;