mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 15:28:43 +02:00
API: Make ns.codingcontract.createDummyContract throw error if type is invalid (#2188)
This commit is contained in:
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -4037,7 +4037,7 @@ export interface CodingContract {
|
||||
* @param type - Type of contract to generate
|
||||
* @returns Filename of the contract.
|
||||
*/
|
||||
createDummyContract(type: string): string;
|
||||
createDummyContract(type: CodingContractName): string;
|
||||
|
||||
/**
|
||||
* List all contract types.
|
||||
|
||||
Reference in New Issue
Block a user