@vasilvelikov/effective-ui
    Preparing search index...

    Function fetchJSON

    • Fetches and parses a JSON response with typed error handling.

      Type Parameters

      • T

        The expected shape of the parsed JSON data.

      Parameters

      • url: string

        The resource URL to fetch.

      • Optionaloptions: RequestInit

        Optional fetch configuration.

      Returns Effect<T, FetchError | JSONParseError>

      An Effect producing the parsed result or a typed error.