Skip to content

Commit

Permalink
Extend options with PaginationRequestOptions in allDiffs and allCommi…
Browse files Browse the repository at this point in the history
…ts (#3431)
  • Loading branch information
Artemoire authored Oct 16, 2023
1 parent ec94930 commit 86c07c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/resources/MergeRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export class MergeRequests<C extends boolean = false> extends BaseResource<C> {
allDiffs<E extends boolean = false, P extends PaginationTypes = 'offset'>(
projectId: string | number,
mergerequestIId: number,
options?: Sudo & ShowExpanded<E>,
options?: Sudo & ShowExpanded<E> & PaginationRequestOptions<P>,
): Promise<GitlabAPIResponse<MergeRequestDiffSchema[], C, E, P>> {
return RequestHelper.get<MergeRequestDiffSchema[]>()(
this,
Expand All @@ -334,7 +334,7 @@ export class MergeRequests<C extends boolean = false> extends BaseResource<C> {
allCommits<E extends boolean = false, P extends PaginationTypes = 'offset'>(
projectId: string | number,
mergerequestIId: number,
options?: Sudo & ShowExpanded<E>,
options?: Sudo & ShowExpanded<E> & PaginationRequestOptions<P>,
): Promise<GitlabAPIResponse<CommitSchema[], C, E, P>> {
return RequestHelper.get<CommitSchema[]>()(
this,
Expand Down

0 comments on commit 86c07c3

Please sign in to comment.