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
Extend DecoratedRequest TypeScript support to Querystring, Headers and Params too.
The description of the bug or the rationale of your proposal
Right now the [DecoratedRequest interface](https://github.com/mia-platform/custom-plugin-lib/blob/9f20da345f208c391527c9c74e4bb7bcbc2955c2/index.d.ts#L60) allows to specify the Generic only for the inner FastifyRequest body, meaning that if I can't specify the shape on any other request parameter (being Querystring, Headers or Params).
A snippet of code for replicating the issue or showing the proposal usage if applicable
The feauture or bug you are proposing
Extend
DecoratedRequest
TypeScript support to Querystring, Headers and Params too.The description of the bug or the rationale of your proposal
Right now the
[DecoratedRequest interface](https://github.com/mia-platform/custom-plugin-lib/blob/9f20da345f208c391527c9c74e4bb7bcbc2955c2/index.d.ts#L60)
allows to specify the Generic only for the inner FastifyRequest body, meaning that if I can't specify the shape on any other request parameter (being Querystring, Headers or Params).A snippet of code for replicating the issue or showing the proposal usage if applicable
In the snippet above,
request.query
is threated asunknown
The expected result for your bug
Your environment
node: v12.17.0
custom-plugin-lib:
@mia-platform/[email protected]
os: MacOS
The text was updated successfully, but these errors were encountered: