mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 22:22:26 +01:00
change defs
This commit is contained in:
parent
e9db656e13
commit
d2ea934c8e
@ -9,15 +9,15 @@ Format a string.
|
|||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
sprintf(format: string, ...args: string[]): string;
|
sprintf(format: string, ...args: any[]): string;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
|
||||||
| Parameter | Type | Description |
|
| Parameter | Type | Description |
|
||||||
| --- | --- | --- |
|
| --------- | ------- | -------------------- |
|
||||||
| format | string | String to format. |
|
| format | string | String to format. |
|
||||||
| args | string\[\] | Formating arguments. |
|
| args | any\[\] | Formating arguments. |
|
||||||
|
|
||||||
<b>Returns:</b>
|
<b>Returns:</b>
|
||||||
|
|
||||||
@ -30,4 +30,3 @@ Formated text.
|
|||||||
RAM cost: 0 GB
|
RAM cost: 0 GB
|
||||||
|
|
||||||
see: https://github.com/alexei/sprintf.js
|
see: https://github.com/alexei/sprintf.js
|
||||||
|
|
||||||
|
@ -9,15 +9,15 @@ Format a string with an array of arguments.
|
|||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
vsprintf(format: string, args: string[]): string;
|
vsprintf(format: string, args: any[]): string;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
|
||||||
| Parameter | Type | Description |
|
| Parameter | Type | Description |
|
||||||
| --- | --- | --- |
|
| --------- | ------- | -------------------- |
|
||||||
| format | string | String to format. |
|
| format | string | String to format. |
|
||||||
| args | string\[\] | Formating arguments. |
|
| args | any\[\] | Formating arguments. |
|
||||||
|
|
||||||
<b>Returns:</b>
|
<b>Returns:</b>
|
||||||
|
|
||||||
@ -30,4 +30,3 @@ Formated text.
|
|||||||
RAM cost: 0 GB
|
RAM cost: 0 GB
|
||||||
|
|
||||||
see: https://github.com/alexei/sprintf.js
|
see: https://github.com/alexei/sprintf.js
|
||||||
|
|
||||||
|
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -5630,7 +5630,7 @@ export interface NS extends Singularity {
|
|||||||
* @param args - Formating arguments.
|
* @param args - Formating arguments.
|
||||||
* @returns Formated text.
|
* @returns Formated text.
|
||||||
*/
|
*/
|
||||||
sprintf(format: string, ...args: string[]): string;
|
sprintf(format: string, ...args: any[]): string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Format a string with an array of arguments.
|
* Format a string with an array of arguments.
|
||||||
@ -5642,7 +5642,7 @@ export interface NS extends Singularity {
|
|||||||
* @param args - Formating arguments.
|
* @param args - Formating arguments.
|
||||||
* @returns Formated text.
|
* @returns Formated text.
|
||||||
*/
|
*/
|
||||||
vsprintf(format: string, args: string[]): string;
|
vsprintf(format: string, args: any[]): string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Format a number
|
* Format a number
|
||||||
|
Loading…
Reference in New Issue
Block a user