react-http-fetch
Version:
An http library for React JS built on top of native JS fetch
19 lines (18 loc) • 404 B
TypeScript
export interface HttpCacheEntry<HttpResponseT> {
/**
* The identifier for the cached entry.
*/
identifier: string;
/**
* The cached parsed reponse for the remote call.
*/
response: HttpResponseT;
/**
* Keeps track of the Date the entry was cached.
*/
cachedAt: Date;
/**
* The max age of entry expressed in ms.
*/
maxAge: number;
}