Package: effect
Module: SchemaGetter
Decodes a hexadecimal string to a UTF-8 string.
Details
SchemaIssue.InvalidValue if the input is not valid hex.Example (Decoding hex to string)
import { SchemaGetter } from "effect"
const decode = SchemaGetter.decodeHexString<string>()
// Getter<string, string>
See
decodeHex to decode to Uint8Array insteadencodeHex for the inverse operationSignature
declare const decodeHexString: <E extends string>() => Getter<string, E>
Since v4.0.0