Add missing topLevelOnly typing to Namespaces.all (#3637)

This commit is contained in:
Youssef 2024-10-13 15:35:14 +02:00 committed by GitHub
parent 73f38ddc91
commit 89be21f23e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,11 @@ export interface NamespaceExistsSchema extends Record<string, unknown> {
export class Namespaces<C extends boolean = false> extends BaseResource<C> {
all<E extends boolean = false, P extends PaginationTypes = 'offset'>(
options?: { search?: string; ownedOnly?: string } & PaginationRequestOptions<P> &
options?: {
search?: string;
ownedOnly?: string;
topLevelOnly?: boolean;
} & PaginationRequestOptions<P> &
Sudo &
ShowExpanded<E>,
): Promise<GitlabAPIResponse<NamespaceSchema[], C, E, P>> {