mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
MISC: Remove APIs that were deprecated a long time ago (#2088)
This commit is contained in:
31
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
31
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -7962,14 +7962,6 @@ export interface NS {
|
||||
*/
|
||||
getScriptExpGain(script: string, host: string, ...args: ScriptArg[]): number;
|
||||
|
||||
/**
|
||||
* Returns the amount of time in milliseconds that have passed since you last installed Augmentations.
|
||||
*
|
||||
* @remarks RAM cost: 0.05 GB
|
||||
* @returns Time in milliseconds that have passed since you last installed Augmentations.
|
||||
*/
|
||||
getTimeSinceLastAug(): number;
|
||||
|
||||
/**
|
||||
* Format a string.
|
||||
*
|
||||
@@ -8057,29 +8049,6 @@ export interface NS {
|
||||
*/
|
||||
formatPercent(n: number, fractionalDigits?: number, suffixStart?: number): string;
|
||||
|
||||
/**
|
||||
* Format a number using the numeral library. This function is deprecated and will be removed in a later version.
|
||||
*
|
||||
* @deprecated
|
||||
*
|
||||
* Use alternatives:
|
||||
*
|
||||
* - NS APIs: ns.formatNumber, ns.formatRam, ns.formatPercent
|
||||
*
|
||||
* - JS built-in objects/functions: Intl.NumberFormat, Intl.PluralRules, Intl.Locale, etc.
|
||||
*
|
||||
* @remarks
|
||||
* RAM cost: 0 GB
|
||||
*
|
||||
* Converts a number into a string with the specified format options.
|
||||
* See http://numeraljs.com/#format for documentation on format strings supported.
|
||||
*
|
||||
* @param n - Number to format.
|
||||
* @param format - Formatting options. See http://numeraljs.com/#format for valid formats.
|
||||
* @returns Formatted number.
|
||||
*/
|
||||
nFormat(n: number, format: string): string;
|
||||
|
||||
/**
|
||||
* Format time to a readable string.
|
||||
* @remarks
|
||||
|
||||
Reference in New Issue
Block a user