Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.

Commit 825089a

Browse files
authored
Correct Client’s 'notice' event’s argument type
Fixes brianc/node-postgres#1735.
1 parent 3dd01a5 commit 825089a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎content/api/2-client.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ client.on('notification', msg => {
318318
client.query(`NOTIFY foo, 'bar!'`)
319319
```
320320

321-
### client.on('notice', (notice: String) => void) => void
321+
### client.on('notice', (notice: Error) => void) => void
322322

323323
Used to log out [notice messages](https://www.postgresql.org/docs/9.6/static/plpgsql-errors-and-messages.html) from the PostgreSQL server.
324324

0 commit comments

Comments
 (0)