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>
Union type of all possible fetchT response data types.
Used when
responseTypeis a dynamic string value rather than a literal type, as the exact return type cannot be determined at compile time.