poe-api-manager
Version:
poe.ninja and poe.watch API
21 lines (20 loc) • 795 B
TypeScript
import PoeWatch from "../../../../AbstractClass/PoeWatch";
/**
* Subclass of PoeWatch for accessing armour data.
*/
export declare class ArmourModule extends PoeWatch {
/**
* Creates a new instance of ArmourModule.
* @param {string} league - The league from which the data will be fetched.
*/
constructor(league: string);
/**
* Retrieves category data for armour.
* @async
* @param categoryName - The name of the category to retrieve.
* * Possible values: "chest", "bodyarmours", "shield", "boots", "gloves", "shields", "helmets", "quiver".
* @returns - A Promise containing data for the specified category.
* @throws - Throws errors encountered while fetching data.
*/
getCategory(categoryName: string): Promise<object[]>;
}