From 8623b5e884b4200a7f6a4478b5b97b91e80711af Mon Sep 17 00:00:00 2001 From: shadowusr Date: Mon, 25 Mar 2024 18:05:31 +0300 Subject: [PATCH] fix: fix conflicting overwriteCommand type definition --- src/browser/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/types.ts b/src/browser/types.ts index f4b9b98c2..63b790bdd 100644 --- a/src/browser/types.ts +++ b/src/browser/types.ts @@ -22,7 +22,7 @@ declare global { namespace WebdriverIO { type OverwriteCommandFn = ( this: IsElement extends true ? WebdriverIO.Element : WebdriverIO.Browser, - origCommand: (...args: any[]) => Promise, // eslint-disable-line @typescript-eslint/no-explicit-any + origCommand: (...args: any[]) => any, // eslint-disable-line @typescript-eslint/no-explicit-any ...args: any[] // eslint-disable-line @typescript-eslint/no-explicit-any ) => Promise; // eslint-disable-line @typescript-eslint/no-explicit-any