You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that I've never managed to import the Chainable type in my custom command file. I am not able to extend the "Cypress" namespace directly from the interface either.
We need to manually add command typings to
cypress/support/index.d.ts
, command per command.This is of course inelegant.
Ideally, Cypress commands should export their own typing, and export it in a single interface.
It could look like this:
The problem is that I've never managed to import the
Chainable
type in my custom command file. I am not able to extend the "Cypress" namespace directly from the interface either.Relevant doc: https://docs.cypress.io/guides/tooling/typescript-support.html#Types-for-custom-commands
Steps to solve
The text was updated successfully, but these errors were encountered: