-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 APIRoute type #3344
Fix APIRoute type #3344
Conversation
🦋 Changeset detectedLatest commit: 5efb514 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A shame we're losing the @deprecated
notice here, but I won't stop us if we're enroute
to a fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Noticed we dropped the return await
, any reason for that?
return await handler.call(mod, proxy, request); | ||
return handler.call(mod, proxy, request); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change anything critical?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, VScode said it wasn't needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, not blocking, just curious.
Please see #3343 (comment) . This does give errors when using async/await in a function |
* Fix APIRoute type * Adds a changeset * Update usage of the two API route signatures
Changes
APIRoute
Testing
Our TS types are currently not tested :/
Docs
N/A, this API is already documented.