Skip to content

Commit

Permalink
fix: fix conflicting overwriteCommand type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Mar 26, 2024
1 parent 6445591 commit 8623b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ declare global {
namespace WebdriverIO {
type OverwriteCommandFn<IsElement extends boolean = false> = (
this: IsElement extends true ? WebdriverIO.Element : WebdriverIO.Browser,
origCommand: (...args: any[]) => Promise<any>, // 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<any>; // eslint-disable-line @typescript-eslint/no-explicit-any

Expand Down

0 comments on commit 8623b5e

Please sign in to comment.