UNPKG

@blizzard-api/wow

Version:

A series of helpers to interact with the World of Warcraft Blizzard API

31 lines (30 loc) 1.13 kB
import { NameId, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core"; //#region src/power-type/types.d.ts /** * The response for a power type index. * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis} */ interface PowerTypeIndexResponse extends ResponseBase { power_types: Array<NameIdKey>; } /** * The response for a power type. * @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis} */ interface PowerTypeResponse extends NameId, ResponseBase {} //#endregion //#region src/power-type/index.d.ts /** * Get a power type by ID. * @param powerTypeId The power type ID. * @returns The power type. See {@link PowerTypeResponse}. */ declare function powerType(powerTypeId: number): Resource<PowerTypeResponse>; /** * Get a power type index. * @returns The power type index. See {@link PowerTypeIndexResponse}. */ declare function powerTypeIndex(): Resource<PowerTypeIndexResponse>; //#endregion export { PowerTypeResponse as i, powerTypeIndex as n, PowerTypeIndexResponse as r, powerType as t }; //# sourceMappingURL=index-C4RC7NKV2.d.ts.map