postgresql-client
postgresql-client copied to clipboard
Better typescript definitions + expose DatabaseError
-
Export more precise typings for data types This enabled the following:
-
Expose the database error so that users can use instanceof checks This enabled the following:
Hi Jacob,
- Exposing
DatabaseErroris ok. - Setting
DataTypeOIDsas const, i am not sure. We can not be sure thatDataTypeOIDsis a complete list of all oids. So i think that it should allow adding items via augmentation. This is why we didn't useenum. Did you test that your code do not prevent augmentation?
Sorry, i am closing this pull request because of no response to questions.