@blizzard-api/classic-wow
Version:
A series of helpers to interact with the World of Warcraft Classic Blizzard API
29 lines (28 loc) • 781 B
JavaScript
import { wowBasePath } from "@blizzard-api/core";
//#region src/power-type/index.ts
/**
* Get a power type by ID.
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
* @param powerTypeId The power type ID.
* @returns The power type. See {@link PowerTypeResponse}.
*/
function powerType(namespace, powerTypeId) {
return {
namespace,
path: `${wowBasePath}/power-type/${powerTypeId}`
};
}
/**
* Get a power type index.
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
* @returns The power type index. See {@link PowerTypeIndexResponse}.
*/
function powerTypeIndex(namespace) {
return {
namespace,
path: `${wowBasePath}/power-type/index`
};
}
//#endregion
export { powerType, powerTypeIndex };
//# sourceMappingURL=index.js.map