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:
And here's the correct usage using the default export:
This PR fixes #862 by ensuring classes defined under the
postgres
namespace aren't also available as a named export, but only under the defaultpostgres.
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:And here's the correct usage using the default export: