MISC: Fix NetscriptDefinitions.d.ts formatting/escaping warnings (#2189)

This commit is contained in:
Kevin Sandow
2025-06-20 20:19:58 +02:00
committed by GitHub
parent e44414850e
commit 694581cb52
5 changed files with 15 additions and 7 deletions

View File

@@ -4,6 +4,7 @@
## CodingContractNameEnumType type ## CodingContractNameEnumType type
**Signature:** **Signature:**
```typescript ```typescript

View File

@@ -4,6 +4,7 @@
## CodingContractObject type ## CodingContractObject type
**Signature:** **Signature:**
```typescript ```typescript

View File

@@ -4,6 +4,7 @@
## CodingContractSignatures type ## CodingContractSignatures type
**Signature:** **Signature:**
```typescript ```typescript

View File

@@ -4,6 +4,7 @@
## HacknetServerHashUpgrade type ## HacknetServerHashUpgrade type
**Signature:** **Signature:**
```typescript ```typescript

View File

@@ -90,7 +90,7 @@ interface ResetInfo {
* BitNode options into account. * BitNode options into account.
* *
* For example, let's say you have SF 1.3, but you overrode the active level of SF1 and set it to level 1. In this * For example, let's say you have SF 1.3, but you overrode the active level of SF1 and set it to level 1. In this
* case, this map contains this entry: Key: 1 => Value: 1. * case, this map contains this entry: Key: 1 =\> Value: 1.
* *
* If the active level of a source file is 0, that source file won't be included in the result. * If the active level of a source file is 0, that source file won't be included in the result.
*/ */
@@ -2514,7 +2514,7 @@ export interface Singularity {
* Returns an array of source files. This function takes BitNode options into account. * Returns an array of source files. This function takes BitNode options into account.
* *
* For example, let's say you have SF 1.3, but you overrode the active level of SF1 and set it to level 1. In this * For example, let's say you have SF 1.3, but you overrode the active level of SF1 and set it to level 1. In this
* case, this function returns {"n":1,"lvl":1}. * case, this function returns \{"n":1,"lvl":1\}.
* *
* If the active level of a source file is 0, that source file won't be included in the result. * If the active level of a source file is 0, that source file won't be included in the result.
* *
@@ -2851,6 +2851,7 @@ export interface CompanyPositionInfo {
requiredSkills: Skills; requiredSkills: Skills;
} }
/** @public */
type HacknetServerHashUpgrade = type HacknetServerHashUpgrade =
| "Sell for Money" | "Sell for Money"
| "Sell for Corporation Funds" | "Sell for Corporation Funds"
@@ -4066,7 +4067,7 @@ export interface Format {
* - "Infinity" and "-Infinity" are returned as "∞" and "-∞", respectively. * - "Infinity" and "-Infinity" are returned as "∞" and "-∞", respectively.
* *
* - If you disable the suffix form in the settings page or the absolute value is greater than or equal to 1e33, this * - If you disable the suffix form in the settings page or the absolute value is greater than or equal to 1e33, this
* function will use the exponential form. This means that, if Math.abs(n) >= 1e33, the returned value is always in * function will use the exponential form. This means that, if Math.abs(n) \>= 1e33, the returned value is always in
* the exponential form, regardless of the setting. * the exponential form, regardless of the setting.
* *
* Note that the behaviors listed above are "undocumented", in the sense that we don't make any guarantee about * Note that the behaviors listed above are "undocumented", in the sense that we don't make any guarantee about
@@ -4619,8 +4620,8 @@ export interface GoAnalysis {
* The details are keyed by opponent name, in this structure: * The details are keyed by opponent name, in this structure:
* *
* <pre lang="javascript"> * <pre lang="javascript">
* { * \{
* <OpponentName>: { * <OpponentName>: \{
* wins: number, * wins: number,
* losses: number, * losses: number,
* winStreak: number, * winStreak: number,
@@ -4628,8 +4629,8 @@ export interface GoAnalysis {
* favor: number, * favor: number,
* bonusPercent: number, * bonusPercent: number,
* bonusDescription: string, * bonusDescription: string,
* } * \}
* } * \}
* </pre> * </pre>
* *
* @returns A dictionary of opponent stats keyed by opponent name. * @returns A dictionary of opponent stats keyed by opponent name.
@@ -8703,6 +8704,7 @@ type FactionNameEnumType = {
/** @public */ /** @public */
type FactionName = _ValueOf<FactionNameEnumType>; type FactionName = _ValueOf<FactionNameEnumType>;
/** @public */
type CodingContractNameEnumType = { type CodingContractNameEnumType = {
FindLargestPrimeFactor: "Find Largest Prime Factor"; FindLargestPrimeFactor: "Find Largest Prime Factor";
SubarrayWithMaximumSum: "Subarray with Maximum Sum"; SubarrayWithMaximumSum: "Subarray with Maximum Sum";
@@ -8738,6 +8740,7 @@ type CodingContractNameEnumType = {
/** @public */ /** @public */
type CodingContractName = _ValueOf<CodingContractNameEnumType>; type CodingContractName = _ValueOf<CodingContractNameEnumType>;
/** @public */
export type CodingContractSignatures = { export type CodingContractSignatures = {
"Find Largest Prime Factor": [number, number]; "Find Largest Prime Factor": [number, number];
"Subarray with Maximum Sum": [number[], number]; "Subarray with Maximum Sum": [number[], number];
@@ -8770,6 +8773,7 @@ export type CodingContractSignatures = {
"Total Number of Primes": [number[], number]; "Total Number of Primes": [number[], number];
}; };
/** @public */
export type CodingContractObject = { export type CodingContractObject = {
[T in keyof CodingContractSignatures]: { [T in keyof CodingContractSignatures]: {
type: T; type: T;