effect-io-ai

Package: effect
Module: SchemaGetter

SchemaGetter.encodeHex

Encodes a Uint8Array or string to a hexadecimal string.

Details

The getter is pure and never fails.

Example (Encoding to hex)

import { SchemaGetter } from "effect"

const encode = SchemaGetter.encodeHex<Uint8Array>()

See

Signature

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

Source

Since v4.0.0