Skip to content

Commit

Permalink
fix: add overload to fix type issue (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Feb 2, 2024
1 parent b167e1d commit 935be1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/commands/app-management.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export async function reset () {
}

/**
* @overload
* @typedef {Object} StartActivityOptions
* @property {string} appActivity
* @property {string} [locale]
Expand All @@ -63,6 +64,7 @@ export async function reset () {
* Activity could only be executed in scope of the current app package.
*
* @this {import('../driver').EspressoDriver}
* @overload
* @param {StartActivityOptions} opts
* @returns {Promise<string>}
*/
Expand Down
1 change: 0 additions & 1 deletion lib/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,6 @@ export class EspressoDriver extends AndroidDriver implements ExternalDriver<
reset = appManagementCmds.reset;
mobileBackgroundApp = appManagementCmds.mobileBackgroundApp;
startActivity = appManagementCmds.startActivity;
// @ts-ignore Params there are ok
mobileStartActivity = appManagementCmds.mobileStartActivity;

mobileWebAtoms = contextCmds.mobileWebAtoms;
Expand Down

0 comments on commit 935be1e

Please sign in to comment.