chore(): review fixes
MODIFY
packages/appium/lib/utils.js
packages/appium/lib/utils.js
@@ -166,13 +166,10 @@ function parseCapsForInnerDriver(
*/
function insertAppiumPrefixes(caps) {
return /** @type {NSCapabilities<C>} */ (
- /** @type {unknown} */ (
- _.mapKeys(caps, (value, key) => {
- if (STANDARD_CAPS_LOWERCASE.has(key.toLowerCase()) || key.includes(':')) {
- return key;
- }
- return `${W3C_APPIUM_PREFIX}:${key}`;
- })
+ _.mapKeys(caps, (_, key) =>
+ STANDARD_CAPS_LOWERCASE.has(key.toLowerCase()) || key.includes(':')
+ ? key
+ : `${W3C_APPIUM_PREFIX}:${key}`
)
);
}

MODIFY
packages/types/lib/capabilities.ts
packages/types/lib/capabilities.ts
@@ -167,9 +167,9 @@ export type DriverCaps<
* Includes {@linkcode BaseCapabilities}.
*
* @example
- * ```js
+ * ```ts
* class MyDriver extends BaseDriver {
- * async createSession (w3ccaps: W3CDriverCaps<MyDriverConstraints>, ...args) {
+ * async createSession (w3ccaps: W3CDriverCaps<MyDriverConstraints>, ...args: any[]) {
* // ...
* }
* }

chore(): review fixes