2025-02-09 10:00:02 -06:00
|
|
|
[**packwizjs**](../../../README.md)
|
|
|
|
|
|
|
|
***
|
|
|
|
|
|
|
|
[packwizjs](../../../modules.md) / [enums/hash-format](../README.md) / isValidHashFormat
|
|
|
|
|
|
|
|
# Function: isValidHashFormat()
|
|
|
|
|
|
|
|
> **isValidHashFormat**(`hashFormat`): [`HashFormat`](../enumerations/HashFormat.md)
|
|
|
|
|
2025-02-09 10:14:11 -06:00
|
|
|
Defined in: enums/hash-format.ts:17
|
|
|
|
|
|
|
|
Checks if the provided hash format is allowed by Packwiz.
|
2025-02-09 10:00:02 -06:00
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
### hashFormat
|
|
|
|
|
|
|
|
`string`
|
|
|
|
|
2025-02-09 10:14:11 -06:00
|
|
|
The hash format to check.
|
|
|
|
|
2025-02-09 10:00:02 -06:00
|
|
|
## Returns
|
|
|
|
|
|
|
|
[`HashFormat`](../enumerations/HashFormat.md)
|
2025-02-09 10:14:11 -06:00
|
|
|
|
|
|
|
The HashFormat enum value if valid, otherwise throws an error.
|