DOCS: Correct function signature for hashUpgradeCost (#1603)

This commit is contained in:
Nicole 2024-08-21 18:47:26 -05:00 committed by GitHub
parent f235513742
commit 995e367432
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

@ -9,14 +9,14 @@ Calculate hash cost of an upgrade.
**Signature:**
```typescript
hashUpgradeCost(upgName: number, level: number): number;
hashUpgradeCost(upgName: string, level: number): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| upgName | number | name of the upgrade |
| upgName | string | name of the upgrade |
| level | number | level of the upgrade |
**Returns:**

@ -5231,7 +5231,7 @@ interface HacknetServersFormulas {
* @param level - level of the upgrade
* @returns The calculated hash cost.
*/
hashUpgradeCost(upgName: number, level: number): number;
hashUpgradeCost(upgName: string, level: number): number;
/**
* Calculate the cost of a hacknet server.
* @param n - number of the hacknet server