@happy-ts/fetch-t
    Preparing search index...

    Type Alias FetchResponseData

    FetchResponseData:
        | string
        | ArrayBuffer
        | Blob
        | Uint8Array<ArrayBuffer>
        | ReadableStream<Uint8Array<ArrayBuffer>>
        | Response
        | null

    Union type of all possible fetchT response data types.

    Used when responseType is a dynamic string value rather than a literal type, as the exact return type cannot be determined at compile time.

    import { fetchT, type FetchResponseData } from '@happy-ts/fetch-t';

    // When responseType is dynamic, return type is FetchResponseData
    const responseType = getResponseType(); // returns string
    const result = await fetchT('https://api.example.com/data', { responseType });
    // result is Result<FetchResponseData, Error>