From b93d0be62e11f69266bd6a659a407a112fc793c5 Mon Sep 17 00:00:00 2001 From: Zamiell <5511220+Zamiell@users.noreply.github.com> Date: Wed, 19 Nov 2025 20:02:50 -0500 Subject: [PATCH] fix: incorrect return type --- api/GitApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/GitApi.ts b/api/GitApi.ts index e21ff89f..b9d71cdf 100644 --- a/api/GitApi.ts +++ b/api/GitApi.ts @@ -117,7 +117,7 @@ export interface IGitApi extends basem.ClientApiBase { getPullRequestReviewers(repositoryId: string, pullRequestId: number, project?: string): Promise; updatePullRequestReviewer(reviewer: GitInterfaces.IdentityRefWithVote, repositoryId: string, pullRequestId: number, reviewerId: string, project?: string): Promise; updatePullRequestReviewers(patchVotes: GitInterfaces.IdentityRefWithVote[], repositoryId: string, pullRequestId: number, project?: string): Promise; - getPullRequestById(pullRequestId: number, project?: string): Promise; + getPullRequestById(pullRequestId: number, project?: string): Promise; getPullRequestsByProject(project: string, searchCriteria: GitInterfaces.GitPullRequestSearchCriteria, maxCommentLength?: number, skip?: number, top?: number): Promise; createPullRequest(gitPullRequestToCreate: GitInterfaces.GitPullRequest, repositoryId: string, project?: string, supportsIterations?: boolean): Promise; getPullRequest(repositoryId: string, pullRequestId: number, project?: string, maxCommentLength?: number, skip?: number, top?: number, includeCommits?: boolean, includeWorkItemRefs?: boolean): Promise; @@ -5425,7 +5425,7 @@ export class GitApi extends basem.ClientApiBase implements IGitApi { public async getPullRequestById( pullRequestId: number, project?: string - ): Promise { + ): Promise { return new Promise(async (resolve, reject) => { let routeValues: any = {