cacheable-request
Version:
Wrap native HTTP requests with RFC compliant cache support
19 lines • 743 B
JavaScript
// Type definitions for cacheable-request 6.0
// Project: https://github.com/lukechilds/cacheable-request#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Paul Melnikow <https://github.com/paulmelnikow>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
export class RequestError extends Error {
constructor(error) {
super(error.message);
Object.defineProperties(this, Object.getOwnPropertyDescriptors(error));
}
}
export class CacheError extends Error {
constructor(error) {
super(error.message);
Object.defineProperties(this, Object.getOwnPropertyDescriptors(error));
}
}
//# sourceMappingURL=types.js.map