v2.3.0: Make types more generic
What
Tried to make the typings for the Elements and nested ComponentObject functions a bit easier to manage. TypeScript would produce errors on certain ElementSelectorFunction
instances, for example, like returning a HTMLAnchorElement
, so it was better to reference the Cypress return types for element selectors there.
Also did the same for the ComponentObjectFunction
, where it uses a generic type for determining the component object function. This helps avoid issues with protected
elements and components producing warnings when they are declared public in an extended class.
See: