DOCUMENTATION: Update TSDoc of ns.purchaseServer and CodingContract types (#2023)

This commit is contained in:
catloversg
2025-03-13 05:46:38 +07:00
committed by GitHub
parent 6666a176ee
commit dcce966fb1
5 changed files with 2 additions and 41 deletions

View File

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