diff --git a/extensions/github/src/pushErrorHandler.ts b/extensions/github/src/pushErrorHandler.ts index c8d43c47198..b4609a67561 100644 --- a/extensions/github/src/pushErrorHandler.ts +++ b/extensions/github/src/pushErrorHandler.ts @@ -82,7 +82,7 @@ async function handlePushError(repository: Repository, remote: Remote, refspec: await repository.push('origin', localName, true); - return [octokit, ghRepository]; + return [octokit, ghRepository] as const; }); // yield @@ -103,8 +103,7 @@ async function handlePushError(repository: Repository, remote: Remote, refspec: title = commit.message.replace(/\n.*$/m, ''); } - // TODO: mjbvz: TS 4.5 workaround - const res = await (octokit as any).pulls.create({ + const res = await octokit.pulls.create({ owner, repo, title,