You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/corellium.js
+23-5Lines changed: 23 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -468,21 +468,39 @@ class Corellium {
468
468
})
469
469
}
470
470
471
+
/**
472
+
* @typedef {Object} GetInstanceOpts
473
+
* @property {string} id - instanceId
474
+
* @property {boolean} [throwIfNotOn=true] - Optional boolean property to not throw if the instance is off (defaults to true)
475
+
*/
476
+
471
477
/**
472
478
* Attempts to retrieve Instance by iterating through all projects until the instance is found.
473
479
*
474
-
* @param {string} instanceId
480
+
* @param {string | GetInstanceOpts} opts - Either an instanceId string or an object with an `id` string and optional `throwIfNotOn` boolean (defaults to true if omitted)
0 commit comments