Description
- Node.js version:
24.13.0
- Gitbeaker version:
43.8.0
- Gitbeaker release (cli, rest, core, requester-utils): rest
- OS & version: WSL / Ubuntu 22
For most REST API methods, the options argument is optional. But it's not the case for share and unshare operations on Groups.
Steps to reproduce
const client = new Gitlab(...);
client.Groups.share(group.id, groupToShare.id, AccessLevel.GUEST);
client.Groups.unshare(group.id, groupToShare.id);
Expected behaviour
No compilation error.
Actual behaviour
Expected 4 arguments, but got 3.
index.d.ts(751, 117): An argument for 'options' was not provided.
(method) Groups<false>.share<false>(groupId: string | number, sharedGroupId: string | number, groupAccess: number, options: {
expiresAt?: string;
} & Sudo & ShowExpanded<false>): Promise<...>
Expected 3 arguments, but got 2.
index.d.ts(759, 98): An argument for 'options' was not provided.
(method) Groups<false>.unshare<false>(groupId: string | number, sharedGroupId: string | number, options: Sudo & ShowExpanded<false>): Promise<void>
Possible fixes
Make options argument optional like for all other methods.
Checklist
Description
24.13.043.8.0For most REST API methods, the options argument is optional. But it's not the case for
shareandunshareoperations onGroups.Steps to reproduce
Expected behaviour
No compilation error.
Actual behaviour
Possible fixes
Make
optionsargument optional like for all other methods.Checklist