bladeburner.getTeamSize: fix signature and documentation (#1383)

This commit is contained in:
Albert Llop 2024-06-10 01:39:01 +02:00 committed by GitHub
parent 995294a770
commit ba7d45362f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

@ -9,15 +9,15 @@ Get team size.
**Signature:**
```typescript
getTeamSize(type: string, name: string): number;
getTeamSize(type?: string, name?: string): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| type | string | _(Optional)_ Type of action. |
| name | string | _(Optional)_ Name of action. Must be an exact match. |
**Returns:**
@ -29,7 +29,7 @@ Number of Bladeburner team members that were assigned to the specified action.
RAM cost: 4 GB
Returns the number of Bladeburner team members you have assigned to the specified action.
Returns the number of available Bladeburner team members. You can also pass the type and name of an action to get the number of Bladeburner team members you have assigned to the specified action.
Setting a team is only applicable for Operations and BlackOps. This function will return 0 for other action types.

@ -3321,7 +3321,9 @@ export interface Bladeburner {
* @remarks
* RAM cost: 4 GB
*
* Returns the number of Bladeburner team members you have assigned to the specified action.
* Returns the number of available Bladeburner team members.
* You can also pass the type and name of an action to get the number of
* Bladeburner team members you have assigned to the specified action.
*
* Setting a team is only applicable for Operations and BlackOps. This function will return 0 for other action types.
*
@ -3329,7 +3331,7 @@ export interface Bladeburner {
* @param name - Name of action. Must be an exact match.
* @returns Number of Bladeburner team members that were assigned to the specified action.
*/
getTeamSize(type: string, name: string): number;
getTeamSize(type?: string, name?: string): number;
/**
* Set team size.