IClient.release() has no return type annotation
Lehks opened this issue · 4 comments
Lehks commented
Pretty much what it says in the title. The method IClient.release()
lacks a return type annotation. Recently, TypeScript has started to raise an error because of this (I am not entirely sure why).
Lehks commented
I just looked up the history of the file pg-subset.d.ts
and it seems like commit 6ace7 is the culprit. The release()
declaration was added by that commit.
IvanPizhenko commented
I'm also facing this issue with v10.15.3:
node_modules/pg-promise/typescript/pg-subset.d.ts:304:9 - error TS7010: 'release', which lacks return-type annotation, implicitly has an 'any' return type.
304 release();
~~~~~~~~~~
Found 1 error in node_modules/pg-promise/typescript/pg-subset.d.ts:304
Please fix it.
Lehks commented
Can confirm, it works now.