@bosstop/pokemontcgapi
Version:
Pokemon TCG API
44 lines (43 loc) • 1.12 kB
TypeScript
import { AxiosInstance } from 'axios';
import { AppResponse } from './index';
import Cards from './cards';
import Sets from './sets';
export default class PokemonTCG {
#private;
/**
* Cards of pokemon tcg api
* @type {Cards}
*/
cards: Cards;
/**
* Sets of pokemon tcg api
* @type {Sets}
*/
sets: Sets;
/**
* Creates an instance of the PokemonTCG API
* @param apiKey
*/
constructor(apiKey: string);
private appResponse;
/**
* @returns {AppResponse} Returns a list of all available types
*/
getTypes(): Promise<AppResponse>;
/**
* @returns {AppResponse} Returns a list of all available subtypes
*/
getSubtypes(): Promise<AppResponse>;
/**
* @returns {AppResponse} Returns a list of all available supertypes
*/
getSupertypes(): Promise<AppResponse>;
/**
* @returns {AppResponse} Returns a list of all available rarities
*/
getRarities(): Promise<AppResponse>;
/**
* @returns {AxiosInstance} Authenticated Axios instance
*/
getInstance(): AxiosInstance;
}