poe-api-manager
Version:
poe.ninja and poe.watch API
15 lines (14 loc) • 811 B
TypeScript
/**
* Retrieves quick currency data for a specific currency in a given league and type.
* @param league - The league for which to fetch currency data.
* @param typeName - The type of currency data to fetch.
* @param type - The type of currency data to fetch.
* @param currencyTypeName - The currencyTypeName of the currency to fetch data for.
* @returns {Promise<{currencyTypeName: string, chaosEquivalent: number}>} An object containing the currency type name and its chaos equivalent.
* @throws Throws an error if the currency data cannot be fetched or if the currency is not found.
*/
declare function getQuickCurrency(league: string, typeName: string, type: string, currencyTypeName: string): Promise<{
currencyTypeName: string;
chaosEquivalent: number;
}>;
export default getQuickCurrency;