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