mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
Extend options with PaginationRequestOptions in allDiffs and allCommits (#3431)
This commit is contained in:
parent
ec94930b7b
commit
86c07c3a50
@ -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,
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user