New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webdriverio: Update types for attach and remote methods #3953
webdriverio: Update types for attach and remote methods #3953
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3953 +/- ##
=======================================
Coverage 98.55% 98.55%
=======================================
Files 153 153
Lines 3451 3451
Branches 753 753
=======================================
Hits 3401 3401
Misses 45 45
Partials 5 5 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Is this version released? When I install the last version with npm I still get the error here: |
@ost12666 this should be implemented |
I saw the PR but when I do npm install webdriverio I get 5.8.4 with the problem. Any idea? node_modules/webdriverio/webdriverio.d.ts:41:29 - error TS2694: Namespace 'WebDriver' has no exported member 'AttachSessionOptions'. 41 options?: WebDriver.AttachSessionOptions, |
@christian-bromann @ost12666 in order this one to be fixed webdriver package has to be released as well. |
So any suggestion what to do for now? I tried to set noEmitOnError to false in tsconfig but it still stops with error. |
Yeah I think every change to the TS definition should come with a change of the definition inside the package (adding a comment or anything) so that Lerna detects a change there as well and releases it. I will make sure to point this out moving forward. |
thanks! any idea for a work around now since I am kind of stuck... |
Define your own typings, similar to how it is in webdriver package. |
thanks I guess that can work |
Could not do that since I am not using WebDriver directly but this does the trick in tsconfig.json
|
Proposed changes
This is a proposal to address some part of #3942
Types of changes
Checklist
Further comments
This PR contains solution where we suggest passing merged options (WebdriverIO and WebDriver) to the
remote()
function, since this is what code is expecting on the input.The other option would be to re-engineer the way we work with
options
, but this most probably will lead to a breaking change in public API.Reviewers: @webdriverio/technical-committee