Converts a HashTypeLike value to a HashType.
The value to convert, which can be a string, number, or bigint.
The corresponding HashType.
Will throw an error if the input value is not a valid hash type.
const hashType = hashTypeFrom(1); // Outputs "data"const hashType = hashTypeFrom("type"); // Outputs "type" Copy
const hashType = hashTypeFrom(1); // Outputs "data"const hashType = hashTypeFrom("type"); // Outputs "type"
Converts a HashTypeLike value to a HashType.