panates / postgrejs

Professional PostgreSQL client for NodeJS
https://postgrejs.panates.com
MIT License
50 stars 12 forks source link

Adds enough type information to be compatible with noImplicitAny: true #43

Closed unilynx closed 1 month ago

unilynx commented 1 month ago

This cleans up a bit of postgrejs code to properly work under noImplicitAny: true (or strict: true)

Background: We're vendoring postgrejs so we can easily manage our own patches on top of postgrejs and jump/debug straight into the TS files. But postgrejs is less strict than our own tsconfig.json, and tsc/typedoc do not support enabling/disabling noImplicitAny on a folder/file base. typedoc also refuses to ignore errors, so improving the typings in postgrejs seems the easiest way out

erayhanoglu commented 1 month ago

That's great. Thank you for contribution. v2.20.0 has been released contains this patch.