Merge pull request #19668 from andrew8er/feature/pg_notice_is_alias_of_error

[pg] Event "notice" is an alias of "error", not "notification"
This commit is contained in:
Arthur Ozga
2017-09-14 11:40:49 -07:00
committed by GitHub
+2 -2
View File
@@ -116,8 +116,8 @@ export class Client extends events.EventEmitter {
resumeDrain(): void;
on(event: "drain", listener: () => void): this;
on(event: "error", listener: (err: Error) => void): this;
on(event: "notification" | "notice", listener: (message: Notification) => void): this;
on(event: "error" | "notice", listener: (err: Error) => void): this;
on(event: "notification", listener: (message: Notification) => void): this;
// tslint:disable-next-line unified-signatures
on(event: "end", listener: () => void): this;
}