@bosstop/pokemontcgapi
Version:
Pokemon TCG API
25 lines (24 loc) • 680 B
TypeScript
import { AxiosInstance } from "axios";
import { AppResponse } from "./index";
export default class Sets {
#private;
/**
* @param {AxiosInstance} instance Authenticated Axios instance
*/
constructor(instance: AxiosInstance);
private appResponse;
/**
* @returns {AppResponse} Returns a list of all available sets
*/
all(): Promise<AppResponse>;
/**
* @param {string} id
* @returns {AppResponse} Returns a set by id
*/
getSetByID(id: string): Promise<AppResponse>;
/**
* @param {string} name
* @returns {AppResponse} Returns a set by name
*/
getSetByName(name: string): Promise<AppResponse>;
}