Skip to content

Commit

Permalink
Declare Groups API allProjects function default type first (#3624)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudTA authored Sep 14, 2024
1 parent 4262425 commit ee74d37
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/src/resources/Groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ export class Groups<C extends boolean = false> extends BaseResource<C> {
);
}

allProjects<E extends boolean = false, P extends PaginationTypes = 'offset'>(
groupId: string | number,
options?: AllGroupProjectsOptions & PaginationRequestOptions<P> & Sudo & ShowExpanded<E>,
): Promise<GitlabAPIResponse<ProjectSchema[], C, E, P>>;

allProjects<E extends boolean = false, P extends PaginationTypes = 'offset'>(
groupId: string | number,
options?: { simple: true } & AllGroupProjectsOptions &
Expand All @@ -240,11 +245,6 @@ export class Groups<C extends boolean = false> extends BaseResource<C> {
ShowExpanded<E>,
): Promise<GitlabAPIResponse<CondensedProjectSchema[], C, E, P>>;

allProjects<E extends boolean = false, P extends PaginationTypes = 'offset'>(
groupId: string | number,
options?: AllGroupProjectsOptions & PaginationRequestOptions<P> & Sudo & ShowExpanded<E>,
): Promise<GitlabAPIResponse<ProjectSchema[], C, E, P>>;

allProjects<E extends boolean = false, P extends PaginationTypes = 'offset'>(
groupId: string | number,
options?: AllGroupProjectsOptions & PaginationRequestOptions<P> & Sudo & ShowExpanded<E>,
Expand Down

0 comments on commit ee74d37

Please sign in to comment.