[Gitlab.Groups] options should be optional for `share` and `unshare` operations
type:bug
**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**
```javascript
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**
```plain
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<...>
```
```plain
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**
- [x] I have checked that this is not a duplicate issue.
- [x] I have read the documentation.
0 条评论