diff --git a/dist/bitburner.d.ts b/dist/bitburner.d.ts index a105446f3..bc1328bb4 100644 --- a/dist/bitburner.d.ts +++ b/dist/bitburner.d.ts @@ -3916,7 +3916,7 @@ export declare interface NS extends Singularity { * @param args - Formating arguments. * @returns Formated text. */ - sprintf(format: string, ...args: string[]): string; + sprintf(format: string, ...args: any[]): string; /** * Format a string with an array of arguments. @@ -3928,7 +3928,7 @@ export declare interface NS extends Singularity { * @param args - Formating arguments. * @returns Formated text. */ - vsprintf(format: string, args: string[]): string; + vsprintf(format: string, args: any[]): string; /** * Format a number diff --git a/markdown/bitburner.ns.sprintf.md b/markdown/bitburner.ns.sprintf.md index a4b690d68..4b3880d6f 100644 --- a/markdown/bitburner.ns.sprintf.md +++ b/markdown/bitburner.ns.sprintf.md @@ -9,15 +9,15 @@ Format a string. Signature: ```typescript -sprintf(format: string, ...args: string[]): string; +sprintf(format: string, ...args: any[]): string; ``` ## Parameters -| Parameter | Type | Description | -| --- | --- | --- | -| format | string | String to format. | -| args | string\[\] | Formating arguments. | +| Parameter | Type | Description | +| --------- | ------- | -------------------- | +| format | string | String to format. | +| args | any\[\] | Formating arguments. | Returns: @@ -30,4 +30,3 @@ Formated text. RAM cost: 0 GB see: https://github.com/alexei/sprintf.js - diff --git a/markdown/bitburner.ns.vsprintf.md b/markdown/bitburner.ns.vsprintf.md index ea2abad41..0ace718b0 100644 --- a/markdown/bitburner.ns.vsprintf.md +++ b/markdown/bitburner.ns.vsprintf.md @@ -9,15 +9,15 @@ Format a string with an array of arguments. Signature: ```typescript -vsprintf(format: string, args: string[]): string; +vsprintf(format: string, args: any[]): string; ``` ## Parameters -| Parameter | Type | Description | -| --- | --- | --- | -| format | string | String to format. | -| args | string\[\] | Formating arguments. | +| Parameter | Type | Description | +| --------- | ------- | -------------------- | +| format | string | String to format. | +| args | any\[\] | Formating arguments. | Returns: @@ -30,4 +30,3 @@ Formated text. RAM cost: 0 GB see: https://github.com/alexei/sprintf.js - diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 99068487a..535640fd1 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -5630,7 +5630,7 @@ export interface NS extends Singularity { * @param args - Formating arguments. * @returns Formated text. */ - sprintf(format: string, ...args: string[]): string; + sprintf(format: string, ...args: any[]): string; /** * Format a string with an array of arguments. @@ -5642,7 +5642,7 @@ export interface NS extends Singularity { * @param args - Formating arguments. * @returns Formated text. */ - vsprintf(format: string, args: string[]): string; + vsprintf(format: string, args: any[]): string; /** * Format a number