https://cypress.io logo
I've got a question. Using Typescript, if I'm tryi...
# e2e-testing
f
I've got a question. Using Typescript, if I'm trying to pass the result of a
cy.get()
call as a parameter, what's the best type to use for the parameter. Below is an example of what I'm trying to do with the ?? as the placeholder for the type I'm trying to figure out.
Copy code
tableHead = () => { return cy.get(".MuiTableCellhead") }
clickTableHead(element: ??) {
    element.click();
}
My IDE is suggesting
() => Cypress.Chainable<JQuery<HTMLElement>>
, but that just ends up throwing more errors.