@blizzard-api/wow
Version:
A series of helpers to interact with the World of Warcraft Blizzard API
30 lines (29 loc) • 1.1 kB
TypeScript
import { Character, KeyBase, NameIdKey, Resource, ResponseBase } from "@blizzard-api/core";
//#region src/character-hunter-pets/types.d.ts
interface CharacterHunterPetsSummaryResponse extends ResponseBase {
character: Character;
hunter_pets: Array<HunterPet>;
}
interface HunterPet {
creature: NameIdKey;
creature_display: KeyBase & {
id: number;
};
is_active?: boolean;
is_summoned?: boolean;
level: number;
name: string;
slot: number;
}
//#endregion
//#region src/character-hunter-pets/index.d.ts
/**
* If the character is a hunter, returns a summary of the character's hunter pets. Otherwise, returns an HTTP 404 Not Found error.
* @param realmSlug The slug of the realm.
* @param characterName The lowercase name of the character.
* @returns a summary of the character's hunter pets.
*/
declare function characterHunterPetsSummary(realmSlug: string, characterName: string): Resource<CharacterHunterPetsSummaryResponse>;
//#endregion
export { CharacterHunterPetsSummaryResponse as n, characterHunterPetsSummary as t };
//# sourceMappingURL=index-C8bInskh.d.ts.map