postgres icon indicating copy to clipboard operation
postgres copied to clipboard

fix(types): use correct default export

Open plushdohn opened this issue 1 year ago • 2 comments

This PR fixes #862 by ensuring classes defined under the postgres namespace aren't also available as a named export, but only under the default postgres. export.

I've tested the change by patching the module in my projects, but I'm not sure if under some specific Typescript scenarios the behaviour could be incorrect.


Trying to import PostgresError as a named export:

Screenshot 2024-06-24 at 12 30 01

And here's the correct usage using the default export:

Screenshot 2024-06-24 at 12 31 14

plushdohn avatar Jun 24 '24 10:06 plushdohn