Skip to content

Commit cad99f8

Browse files
committed
[js] Adjust type annotations to properly track types when generating API docs.
No functional changes.
1 parent 0cf2e24 commit cad99f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

javascript/node/selenium-webdriver/lib/session.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class Session {
2727

2828
/**
2929
* @param {string} id The session ID.
30-
* @param {!(Object|Capabilities)} capabilities The session
31-
* capabilities.
30+
* @param {!./capabilities.Capabilities} capabilities
31+
* The session capabilities.
3232
*/
3333
constructor(id, capabilities) {
3434
/** @private {string} */

javascript/node/selenium-webdriver/lib/webdriver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ function filterNonW3CCaps(capabilities) {
618618
*/
619619
class WebDriver {
620620
/**
621-
* @param {!(Session|IThenable<!Session>)} session Either a known session or a
622-
* promise that will be resolved to a session.
621+
* @param {!(./session.Session|IThenable<!./session.Session>)} session Either
622+
* a known session or a promise that will be resolved to a session.
623623
* @param {!command.Executor} executor The executor to use when sending
624624
* commands to the browser.
625625
* @param {(function(this: void): ?)=} onQuit A function to call, if any,

0 commit comments

Comments
 (0)