Current behavior
When returning any from cypress chainable both following methods return types are Cypress.Chainable<JQuery<any>> which is incorrect.
foo() {
return cy.get('body').then((_) => {
return {} as any;
});
}
foo() {
return cy.request('/').then(response => {
return response.body.bar;
});
}

Desired behavior
Tested on Cypress 6.9.1, it correctly return Cypress.Chainable<any>.

Versions
Tested on 6.9.1 - working as expected, 7.3.0, 7.4.0 - incorrect types
Current behavior
When returning
anyfrom cypress chainable both following methods return types areCypress.Chainable<JQuery<any>>which is incorrect.Desired behavior
Tested on Cypress 6.9.1, it correctly return
Cypress.Chainable<any>.Versions
Tested on 6.9.1 - working as expected, 7.3.0, 7.4.0 - incorrect types