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

feat: add types for req.req and req.res #415

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

schwma
Copy link
Member

@schwma schwma commented Feb 27, 2025

part of cap/issues/17887
documented in cap-js/docs#1603

@@ -160,6 +163,9 @@ srv.before('*', Books, req => {
req.query.elements['foo'].type
})
srv.before('*', async req => {
req.req
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not necessary to test req.req/req.res in each handler that provides an instance of cds.Request as a callback argument. Only test in one place?

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