Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix async middleware typings #165

Merged
merged 2 commits into from
May 4, 2024
Merged

Fix async middleware typings #165

merged 2 commits into from
May 4, 2024

Conversation

blomqma
Copy link
Owner

@blomqma blomqma commented May 4, 2024

This fixes the TS error when using an async
middleware by fixing the return types of the
middleware function. This also exports the typings
of TypedNextRerquest, TypedNextApiRequest and
TypedNextApiResponse so that they can be used for
custom abstractions.

blomqma added 2 commits April 20, 2024 12:45
This fixes the TS error when using an async
middleware by fixing the return types of the
middleware function. This also exports the typings
of `TypedNextRerquest`, `TypedNextApiRequest` and
`TypedNextApiResponse` so that they can be used for
custom abstractions.
Copy link

vercel bot commented May 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-rest-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 4, 2024 9:19am
next-rest-framework-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 4, 2024 9:19am

@blomqma blomqma merged commit 6f9cb4b into main May 4, 2024
7 checks passed
@blomqma blomqma deleted the typing-improvements branch May 4, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant