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