[@types/pg] err param in "release" | "error" event handler callback should have type Error | null | undefined
#68036
Unanswered
RalphORama
asked this question in
Issues with a @types package
Replies: 1 comment
-
|
Thanks for the discussion about "pg", some useful links for everyone: Pinging the DT module owners: @pspeter3, @HoldYourWaffle. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using:
"pg": "^8.11.3","@types/pg": "^8.10.9",Specifically on this line: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/pg/index.d.ts#L206
It often occurs that the
errparameter is of typenullorundefined. I encountered an issue because checkingerr.messagein a custom event listener for thereleaseevent can result in:A temporary workaround I'm using is:
which will often log messages like:
Beta Was this translation helpful? Give feedback.
All reactions