poe-api-manager
Version:
poe.ninja and poe.watch API
10 lines (9 loc) • 445 B
TypeScript
/**
* Fetches data from the POE Watch API based on the provided query URL.
* @param league - The game league for which to fetch currency data.
* @param type - The type of data to fetch.
* @returns - A Promise that resolves to the fetched data.
* @throws - Throws an error if there is an issue with the API response or fetching data.
*/
declare function fetchData(league: string, type: string): Promise<object[]>;
export default fetchData;