You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.0.0
Plugin version
5.0.0
Node.js version
16.16.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
12.4
Description
When attempting to use the transact route option using typescript, passing in the transact route options and referencing pg from the request object throws typescript type errors. This is because because pg has not been added to FastifyRequest and
Sorry for the accidental close, wanted to comment that I've added a PR for this since it seems easy enough to resolve. Let me know if there's anything else I need to do or if there's an issue with this PR
Prerequisites
Fastify version
4.0.0
Plugin version
5.0.0
Node.js version
16.16.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
12.4
Description
When attempting to use the transact route option using typescript, passing in the transact route options and referencing
pg
from the request object throws typescript type errors. This is because becausepg
has not been added to FastifyRequest andhas not been added for
pg
for RouteShorthandOptionsSteps to Reproduce
Expected Behavior
Using the route transact option should not cause compile errors in typescript
The text was updated successfully, but these errors were encountered: