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