function enumName<T extends string = string>(value: unknown, names?: readonly T[]): T; enum: one of the names the contract defines, compared exactly; the name is returned as it is.
enumName functionfunction enumName<T extends string = string>(value: unknown, names?: readonly T[]): T; enum: one of the names the contract defines, compared exactly; the name is returned as it is.