This commit is contained in:
Olivier Gagnon
2021-11-03 00:27:21 -04:00
parent 37845c57c0
commit 2b79871c02
299 changed files with 3861 additions and 7125 deletions

View File

@@ -4,12 +4,12 @@
## CodingContract.getContractType() method
Returns a name describing the type of problem posed by the Coding Contract. (e.g. Find Largest Prime Factor, Total Ways to Sum, etc.)
Get the type of a coding contract.
<b>Signature:</b>
```typescript
getContractType(fn: string, host?: string): CodingContractTypes;
getContractType(fn: string, host?: string): string;
```
## Parameters
@@ -17,11 +17,11 @@ getContractType(fn: string, host?: string): CodingContractTypes;
| Parameter | Type | Description |
| --- | --- | --- |
| fn | string | Filename of the contract. |
| host | string | Host or IP of the server containing the contract. Optional. Defaults to current server if not provided. |
| host | string | Host of the server containing the contract. Optional. Defaults to current server if not provided. |
<b>Returns:</b>
[CodingContractTypes](./bitburner.codingcontracttypes.md)
string
Name describing the type of problem posed by the Coding Contract.
@@ -29,3 +29,5 @@ Name describing the type of problem posed by the Coding Contract.
RAM cost: 5 GB
Returns a name describing the type of problem posed by the Coding Contract. (e.g. Find Largest Prime Factor, Total Ways to Sum, etc.)