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