poe-api-manager
Version:
poe.ninja and poe.watch API
21 lines (20 loc) • 764 B
TypeScript
import PoeWatch from "../../../../AbstractClass/PoeWatch";
/**
* Subclass of PoeWatch for accessing accessory data.
*/
export declare class AccessoryModule extends PoeWatch {
/**
* Creates a new instance of AccessoryModule.
* @param {string} 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: "amulets", "rings", "belts", "quivers".
* @returns - A Promise containing data for the specified category.
* @throws - Throws errors encountered while fetching data.
*/
getCategory(categoryName: string): Promise<object[]>;
}