Merge pull request #2585 from erplsf/dev

Change typescript definitions for sprintf/vsprintf
This commit is contained in:
hydroflame 2022-01-12 11:15:13 -05:00 committed by GitHub
commit 7696636f8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 16 deletions

4
dist/bitburner.d.ts vendored

@ -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

@ -9,15 +9,15 @@ Format a string.
<b>Signature:</b>
```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. |
<b>Returns:</b>
@ -30,4 +30,3 @@ Formated text.
RAM cost: 0 GB
see: https://github.com/alexei/sprintf.js

@ -9,15 +9,15 @@ Format a string with an array of arguments.
<b>Signature:</b>
```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. |
<b>Returns:</b>
@ -30,4 +30,3 @@ Formated text.
RAM cost: 0 GB
see: https://github.com/alexei/sprintf.js

@ -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