UNPKG

poe-api-manager

Version:
11 lines (10 loc) 656 B
/** * Fetches data from a specified API endpoint, merges relevant data, and returns the result. * @param league The game league for which to fetch data. * @param type The type of data to fetch. (e.g. "Currency", "Fragment") * @param typeName The name of the type of data to fetch. (e.g. "CurrencyOverview", "ItemOverview") * @returns A promise that resolves to an array of merged objects containing both line and currency details. * @throws Throws an error if there's an issue with the API response or data fetching process. */ declare function fetchData(league: string, typeName: string, type: string): Promise<object[]>; export default fetchData;