File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ node_modules/
77dist /
88esm /
99lib /
10+ yarn.lock
Original file line number Diff line number Diff line change 44 * @since 2017-10-11
55 */
66
7- import { AxiosAdapter , AxiosPromise , AxiosRequestConfig } from 'axios' ;
7+ import { AxiosAdapter , AxiosPromise , InternalAxiosRequestConfig } from 'axios' ;
88import LRUCache from 'lru-cache' ;
99import buildSortedURL from './utils/buildSortedURL' ;
1010import { ICacheLike } from './utils/isCacheLike' ;
@@ -21,14 +21,13 @@ export type Options = {
2121
2222export default function throttleAdapterEnhancer ( adapter : AxiosAdapter , options : Options = { } ) : AxiosAdapter {
2323
24- const { threshold = 1000 , cache = new LRUCache < string , RecordedCache > ( { max : 10 } ) } = options ;
24+ const { threshold = 1000 , cache = new LRUCache < string , RecordedCache > ( { max : 10 } ) } = options ;
2525
26- const recordCacheWithRequest = ( index : string , config : AxiosRequestConfig ) => {
26+ const recordCacheWithRequest = ( index : string , config : InternalAxiosRequestConfig ) => {
2727
2828 const responsePromise = ( async ( ) => {
2929
3030 try {
31- // @ts -ignore
3231 const response = await adapter ( config ) ;
3332
3433 cache . set ( index , {
You can’t perform that action at this time.
0 commit comments