@blizzard-api/classic-wow
Version:
A series of helpers to interact with the World of Warcraft Classic Blizzard API
33 lines (32 loc) • 1.46 kB
TypeScript
import { BlizzardNamespaces, 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 namespace The namespace to use. See {@link BlizzardNamespaces}.
* @param powerTypeId The power type ID.
* @returns The power type. See {@link PowerTypeResponse}.
*/
declare function powerType(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>, powerTypeId: number): Resource<PowerTypeResponse>;
/**
* Get a power type index.
* @param namespace The namespace to use. See {@link BlizzardNamespaces}.
* @returns The power type index. See {@link PowerTypeIndexResponse}.
*/
declare function powerTypeIndex(namespace: Extract<BlizzardNamespaces, 'static-classic1x' | 'static-classic'>): Resource<PowerTypeIndexResponse>;
//#endregion
export { PowerTypeResponse as i, powerTypeIndex as n, PowerTypeIndexResponse as r, powerType as t };
//# sourceMappingURL=index-i0vuifJx.d.ts.map