From 9f88e46d7ff5b4d71244cafebf9cc5b442b06047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Wachter?= Date: Mon, 11 Sep 2017 11:18:57 +0200 Subject: [PATCH] [pg] Event "notice" is an alias of "error", not "notification" https://github.com/brianc/node-postgres/blob/e087305f316b364bdbd3045f5c5339b80f757174/lib/connection.js#L577-L582 --- types/pg/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index f98f952884..414eff8d80 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -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; }