mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
DOCUMENTATION: Update TSDoc of ns.purchaseServer and CodingContract types (#2023)
This commit is contained in:
9
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
9
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -7465,7 +7465,7 @@ export interface NS {
|
||||
/**
|
||||
* Purchase a server.
|
||||
* @remarks
|
||||
* 2.25 GB
|
||||
* RAM cost: 2.25 GB
|
||||
*
|
||||
* Purchase a server with the specified hostname and amount of RAM.
|
||||
*
|
||||
@@ -8692,13 +8692,6 @@ export type CodingContractSignatures = {
|
||||
[CodingContractName.SquareRoot]: [bigint, bigint, [string, string]];
|
||||
};
|
||||
|
||||
export type CodingContractData<T extends string> = T extends `${keyof CodingContractSignatures}`
|
||||
? CodingContractSignatures[T][0]
|
||||
: any;
|
||||
export type CodingContractAnswer<T extends string> = T extends `${keyof CodingContractSignatures}`
|
||||
? CodingContractSignatures[T][1]
|
||||
: any;
|
||||
|
||||
export type CodingContractObject = {
|
||||
[T in keyof CodingContractSignatures]: {
|
||||
type: T;
|
||||
|
||||
Reference in New Issue
Block a user