dota-wiki-api
Version:
A module to communicate with Liquipedia's Dota 2 Wiki to fetch Team Info, DPC Rankings, Dota Game Schedules, and more!
12 lines (11 loc) • 440 B
TypeScript
import { Request, RequestInit } from 'node-fetch';
export declare class CacheFetch {
urlStub: string;
private apiCache;
private lastFetch;
constructor(useHttps?: boolean);
cacheFetch(url: string | Request, init?: RequestInit): Promise<any>;
checkRedirect(response: any, requestInfo: any): Promise<any>;
fakeFetch(url: string | Request, init?: RequestInit): Promise<any>;
private _canFetchNew(currentTime);
}