poe-api-manager
Version:
poe.ninja and poe.watch API
21 lines (20 loc) • 728 B
TypeScript
import PoeWatch from "../../../../AbstractClass/PoeWatch";
/**
* Class for retrieving gem data from the POE Watch API.
*/
export declare class GemModule extends PoeWatch {
/**
* Creates a new instance of GemModule.
* @param league - The league from which the data will be fetched.
*/
constructor(league: string);
/**
* Retrieves category data for accessories.
* @async
* @param categoryName - The name of the category to retrieve.
* * Possible values: "gems", "supportgem".
* @returns - A Promise containing data for the specified category.
* @throws - Throws errors encountered while fetching data.
*/
getCategory(categoryName: string): Promise<object[]>;
}