Skip to content

Commit 935be1e

Browse files
authored
fix: add overload to fix type issue (#976)
1 parent b167e1d commit 935be1e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/commands/app-management.js

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export async function reset () {
5151
}
5252

5353
/**
54+
* @overload
5455
* @typedef {Object} StartActivityOptions
5556
* @property {string} appActivity
5657
* @property {string} [locale]
@@ -63,6 +64,7 @@ export async function reset () {
6364
* Activity could only be executed in scope of the current app package.
6465
*
6566
* @this {import('../driver').EspressoDriver}
67+
* @overload
6668
* @param {StartActivityOptions} opts
6769
* @returns {Promise<string>}
6870
*/

lib/driver.ts

-1
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,6 @@ export class EspressoDriver extends AndroidDriver implements ExternalDriver<
704704
reset = appManagementCmds.reset;
705705
mobileBackgroundApp = appManagementCmds.mobileBackgroundApp;
706706
startActivity = appManagementCmds.startActivity;
707-
// @ts-ignore Params there are ok
708707
mobileStartActivity = appManagementCmds.mobileStartActivity;
709708

710709
mobileWebAtoms = contextCmds.mobileWebAtoms;

0 commit comments

Comments
 (0)