Skip to content
#

cypress

Here are 2,715 public repositories matching this topic...

cypress
mkbctrl
mkbctrl commented Jun 17, 2022

What would you like?

Hey, I have similar issue to this one: cypress-io/cypress#9109

I would like to pass proper interface as a generic to request.body received from .then, example:

cy.wait('@someRequestAlias')
  .then(({request: { body }}) => {
    console.log(body) //=> any
 })

From what I currently see, request body is typed as any on line

type: enhancement good first issue type: typings E2E-core

Improve this page

Add a description, image, and links to the cypress topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the cypress topic, visit your repo's landing page and select "manage topics."

Learn more