From f825cc0bfd42328cbc5fac72c3fa8f298951407e Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Tue, 23 Aug 2022 12:46:38 -0400 Subject: [PATCH] regen doc --- dist/bitburner.d.ts | 7 ++++++- markdown/bitburner.codingcontract.attempt.md | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/dist/bitburner.d.ts b/dist/bitburner.d.ts index 6999ec1c4..d4d591d00 100644 --- a/dist/bitburner.d.ts +++ b/dist/bitburner.d.ts @@ -777,7 +777,12 @@ export declare interface CodingContract { * @param opts - Optional parameters for configuring function behavior. * @returns True if the solution was correct, false otherwise. If the returnReward option is configured, then the function will instead return a string. If the contract is successfully solved, the string will contain a description of the contract’s reward. Otherwise, it will be an empty string. */ - attempt(answer: string[] | number, filename: string, host?: string, opts?: CodingAttemptOptions): boolean | string; + attempt( + answer: string | number | any[], + filename: string, + host?: string, + opts?: CodingAttemptOptions, + ): boolean | string; /** * Get the type of a coding contract. diff --git a/markdown/bitburner.codingcontract.attempt.md b/markdown/bitburner.codingcontract.attempt.md index 3c1875ab9..32ab60ce6 100644 --- a/markdown/bitburner.codingcontract.attempt.md +++ b/markdown/bitburner.codingcontract.attempt.md @@ -9,14 +9,19 @@ Attempts a coding contract. Signature: ```typescript -attempt(answer: string[] | number, filename: string, host?: string, opts?: CodingAttemptOptions): boolean | string; +attempt( + answer: string | number | any[], + filename: string, + host?: string, + opts?: CodingAttemptOptions, + ): boolean | string; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| answer | string\[\] \| number | Solution for the contract. | +| answer | string \| number \| any\[\] | Solution for the contract. | | filename | string | Filename of the contract. | | host | string | Host of the server containing the contract. Optional. Defaults to current server if not provided. | | opts | [CodingAttemptOptions](./bitburner.codingattemptoptions.md) | Optional parameters for configuring function behavior. |