API: Make ns.codingcontract.createDummyContract throw error if type is invalid (#2188)

This commit is contained in:
catloversg
2025-06-21 02:08:49 +07:00
committed by GitHub
parent 00e2169c92
commit 1eca42c75e
5 changed files with 9 additions and 12 deletions

View File

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