MCPcopy Create free account
hub / github.com/effect-app/libs / decodeUriComponent

Function decodeUriComponent

repos/effect/packages/effect/src/SchemaGetter.ts:1478–1490  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1476 * @see {@link encodeHex} for the inverse operation
1477 *
1478 * @category decoding
1479 * @since 4.0.0
1480 */
1481export function decodeHex<E extends string>(): Getter<Uint8Array, E> {
1482 return transformOrFail((input, options) =>
1483 Result.match(Encoding.decodeHex(input), {
1484 onFailure: () =>
1485 Effect.fail(
1486 new SchemaIssue.InvalidValue(
1487 { expected: "a valid hexadecimal string" },
1488 input,
1489 options
1490 )
1491 ),
1492 onSuccess: Effect.succeed
1493 })

Callers

nothing calls this directly

Calls 4

someMethod · 0.80
transformOrFailFunction · 0.70
succeedMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…