@blizzard-api/wow
Version:
A series of helpers to interact with the World of Warcraft Blizzard API
34 lines (33 loc) • 1.08 kB
TypeScript
import { Href, NameId, Resource, ResponseBase } from "@blizzard-api/core";
//#region src/region/types.d.ts
/**
* The response for a region index.
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
*/
interface RegionIndexResponse extends ResponseBase {
regions: Array<Href>;
}
/**
* The response for a region.
* @see {@link https://develop.battle.net/documentation/world-of-warcraft/game-data-apis}
*/
interface RegionResponse extends NameId, ResponseBase {
patch_string: string;
tag: string;
}
//#endregion
//#region src/region/index.d.ts
/**
* Get a region by ID.
* @param regionId The region ID.
* @returns The region. See {@link RegionResponse}.
*/
declare function region(regionId: number): Resource<RegionResponse>;
/**
* Get a region index.
* @returns The region index. See {@link RegionIndexResponse}.
*/
declare function regionIndex(): Resource<RegionIndexResponse>;
//#endregion
export { RegionResponse as i, regionIndex as n, RegionIndexResponse as r, region as t };
//# sourceMappingURL=index-Bp_Jo2ZI.d.ts.map