()
| 1581 | * @since 4.0.0 |
| 1582 | */ |
| 1583 | export function decodeUriComponent<E extends string>(): Getter<string, E> { |
| 1584 | return transformOrFail((input, options) => { |
| 1585 | try { |
| 1586 | return Effect.succeed(globalThis.decodeURIComponent(input)) |
| 1587 | } catch { |
| 1588 | return Effect.fail( |
| 1589 | new SchemaIssue.InvalidValue( |
| 1590 | { expected: "a valid URI component" }, |
| 1591 | input, |
| 1592 | options |
| 1593 | ) |
| 1594 | ) |
| 1595 | } |
| 1596 | }) |
| 1597 | } |
| 1598 | |
| 1599 | /** |
| 1600 | * Parses a `DateTime.Input` value into a `DateTime.Utc`. |
nothing calls this directly
no test coverage detected