Open
Description
Current behavior
Calling this.set('timeout', options?.timeout)
results in the following error: Argument of type '"timeout"' is not assignable to parameter of type 'keyof EnqueuedCommandAttributes'. [2345]
Desired behavior
Typescript type definition should be updated to add a "timeout" attribute to the EnqueuedCommandAttributes interface
Test code to reproduce
Cypress.Commands.addQuery('getFoo', function getFoo(selector, options) {
let log: Cypress.Log | undefined;
if (options?.log !== false) {
log = Cypress.log({ timeout: options?.timeout });
}
this.set('timeout', options?.timeout); // This line
return (): JQuery => {
// TODO: inner function
};
});
Cypress Version
13.13.3
Node version
v20.17.0
Operating System
Ubuntu 22.04
Debug Logs
No response
Other
No response