Existing overwriteCommand definition conflicts with wdio's definition due to an incompatibility between origCommand types: wdio's definition has return type of Promise<... | never>, while ours has Promise<any>. Since never is not assignable to any, it doesn't work. This PR replaces Promise<any> with just any.
Existing
overwriteCommand
definition conflicts with wdio's definition due to an incompatibility betweenorigCommand
types: wdio's definition has return type ofPromise<... | never>
, while ours hasPromise<any>
. Since never is not assignable to any, it doesn't work. This PR replacesPromise<any>
with justany
.