effect-io-ai

Package: effect
Module: SchemaGetter

SchemaGetter.decodeHex

Decodes a hexadecimal string to a Uint8Array.

Details

Example (Decoding hex to bytes)

import { SchemaGetter } from "effect"

const decode = SchemaGetter.decodeHex<string>()
// Getter<Uint8Array, string>

See

Signature

declare const decodeHex: <E extends string>() => Getter<Uint8Array, E>

Source

Since v4.0.0