poe-api-manager
Version:
poe.ninja and poe.watch API
12 lines (11 loc) • 593 B
TypeScript
/**
* Retrieves data from the specified URL, optionally filtering based on requested properties.
*
* @param league - The league from which the data will be fetched.
* @param type - The type of data to be fetched.
* @param requestedProperties - An optional array of property names to filter the data.
* @returns - A promise that resolves to the fetched or filtered data.
* @throws - Throws an error if there is an issue fetching or filtering the data.
*/
declare function getData(league: string, type: string, requestedProperties?: string[]): Promise<object[]>;
export default getData;