poe-api-manager
Version:
poe.ninja and poe.watch API
21 lines (20 loc) • 816 B
TypeScript
import PoeWatch from "../../../../AbstractClass/PoeWatch";
/**
* Subclass of PoeWatch for accessing weapon data.
*/
export declare class WeaponModule extends PoeWatch {
/**
* Creates a new instance of WeaponModule.
* @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: "twohandswords", "fishingrods", "onehandswords", "twohandaxes", "staves", "warstaff", "daggers", "scepters".
* @returns - A Promise containing data for the specified category.
* @throws - Throws errors encountered while fetching data.
*/
getCategory(categoryName: string): Promise<object[]>;
}