From ba7d45362f02d975a74b1cdc2c6e51a3471df4c0 Mon Sep 17 00:00:00 2001 From: Albert Llop Date: Mon, 10 Jun 2024 01:39:01 +0200 Subject: [PATCH] bladeburner.getTeamSize: fix signature and documentation (#1383) --- markdown/bitburner.bladeburner.getteamsize.md | 8 ++++---- src/ScriptEditor/NetscriptDefinitions.d.ts | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/markdown/bitburner.bladeburner.getteamsize.md b/markdown/bitburner.bladeburner.getteamsize.md index 37c87b530..02811fa95 100644 --- a/markdown/bitburner.bladeburner.getteamsize.md +++ b/markdown/bitburner.bladeburner.getteamsize.md @@ -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. diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index f816e66d5..1d47d472e 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -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.