Skip to content

Commit 825089a

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/api/2-client.mdx

+1-1
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)