diff --git a/lib/commands/execute.js b/lib/commands/execute.js index 91ce471..375efa8 100644 --- a/lib/commands/execute.js +++ b/lib/commands/execute.js @@ -64,7 +64,7 @@ export async function executeMacosCommand (command, opts = {}) { throw new errors.UnknownCommandError(`Unknown extension command "${command}". ` + `Only ${_.keys(EXTENSION_COMMANDS_MAPPING)} commands are supported.`); } - return await this[EXTENSION_COMMANDS_MAPPING[command]](opts); + return await this[/** @type {string} */ (EXTENSION_COMMANDS_MAPPING[command])](opts); }; /**