mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added type definitions for apicache * Added type definitions for apicache * Update index.d.ts * Update index.d.ts * fix lint * refactor lint rules * fix lint * add test file
18 lines
278 B
TypeScript
18 lines
278 B
TypeScript
import { middleware, newInstance, options } from 'apicache';
|
|
|
|
let cache = middleware;
|
|
|
|
options({
|
|
statusCodes: {
|
|
exclude: [404, 429, 500],
|
|
include: [200, 304]
|
|
}
|
|
});
|
|
|
|
cache = newInstance({
|
|
statusCodes: {
|
|
exclude: [404, 429, 500],
|
|
include: [200, 304]
|
|
}
|
|
});
|