ecyrbe / zodios-express

zodios express server
MIT License
55 stars 8 forks source link

Router route has incorrect types for NextJs #266

Closed alex-way closed 11 months ago

alex-way commented 1 year ago

When using a Zodios Router in a NextJs project, the types inferred are using express Request/Response types rather than NextJs.

Would it be possible to have some kind've argument on the router to tell it to configure the NextJs types?

image

ecyrbe commented 1 year ago

Hello, in fact they are really express ones. nextjs is encapsulated in express and the instance are replaced by node ones by express. not sure nextjs one are still there after that. maybe if you explain your use case i can propose a workaround ?

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.