Skip to content

Commit

Permalink
rename type
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jul 29, 2024
1 parent 421a769 commit a8173da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/mixins/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ export async function selectApp (currentUrl = null, maxTries = SELECT_APP_RETRIE
* @param {string?} currentUrl
* @param {number} maxTries
* @param {boolean} ignoreAboutBlankUrl
* @returns {Promise<AppPages>}
* @returns {Promise<AppPage>}
*/
export async function searchForApp (currentUrl, maxTries, ignoreAboutBlankUrl) {
const bundleIds = this.includeSafari && !this.isSafari
? [this.bundleId, ...this.additionalBundleIds, SAFARI_BUNDLE_ID]
: [this.bundleId, ...this.additionalBundleIds];
let retryCount = 0;
return /** @type {AppPages} */ (await retryInterval(maxTries, SELECT_APP_RETRY_SLEEP_MS, async () => {
return /** @type {AppPage} */ (await retryInterval(maxTries, SELECT_APP_RETRY_SLEEP_MS, async () => {
logApplicationDictionary.bind(this)();
const possibleAppIds = getPossibleDebuggerAppKeys(/** @type {string[]} */ (bundleIds), this.appDict);
this.log.debug(`Trying out the possible app ids: ${possibleAppIds.join(', ')} (try #${retryCount + 1} of ${maxTries})`);
Expand Down Expand Up @@ -220,7 +220,7 @@ export async function searchForApp (currentUrl, maxTries, ignoreAboutBlankUrl) {
* @param {Record<string, import('../utils').AppInfo>} appsDict
* @param {string?} currentUrl
* @param {boolean} [ignoreAboutBlankUrl]
* @returns {AppPages?}
* @returns {AppPage?}
*/
export function searchForPage (appsDict, currentUrl = null, ignoreAboutBlankUrl = false) {
for (const appDict of _.values(appsDict)) {
Expand Down Expand Up @@ -294,7 +294,7 @@ function logApplicationDictionary () {
}

/**
* @typedef {Object} AppPages
* @typedef {Object} AppPage
* @property {string} appIdKey
* @property {Page} pageDict
*/
Expand Down

0 comments on commit a8173da

Please sign in to comment.