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
All the examples on the Cypress documentation have the types omitted here for simplicity. But they almost never work when using on a real Typescript project with strict types.
And trying to get the correct types is not really easy because they are usually types of a type of another type, and they break when it has overloads.
For example, the code given for Custom Queries gives this code:
Subject
Examples
Description
All the examples on the Cypress documentation have the types omitted here for simplicity. But they almost never work when using on a real Typescript project with strict types.
And trying to get the correct types is not really easy because they are usually types of a type of another type, and they break when it has overloads.
For example, the code given for Custom Queries gives this code:
But trying to use it will cause a typescript error on the timeout usage:
even when using the exact code that the original function
I think, it would be easier to get started if the types are defined from start.
The text was updated successfully, but these errors were encountered: