Hyperlinkv0.8.0-beta.28

SchemaGetter

SchemaGetter.encodeUriComponentfunctioneffect/SchemaGetter.ts:1454
<E extends string>(): Getter<string, E>

Encodes a present string using encodeURIComponent.

Details

  • Skips None inputs.
  • May throw a URIError for malformed surrogate pairs; this exception is not converted into an Issue.

Example (Encoding a URI component)

import { SchemaGetter } from "effect"

const encode = SchemaGetter.encodeUriComponent<string>()
export function encodeUriComponent<E extends string>(): Getter<string, E> {
  return transform(encodeURIComponent)
}
Referenced by 1 symbols