style: formatted code

This commit is contained in:
Hazork 2021-09-01 16:34:54 -03:00
parent be210b2924
commit 13eacedc02
3 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
import { AxiosInstance } from 'axios';
import { applyRequestInterceptor } from '../interceptors/request';
import { applyResponseInterceptor } from '../interceptors/response';
import { MemoryStorage } from '../storage/memory';
import { defaultKeyGenerator } from '../utils/key-generator';
import { AxiosInstance } from 'axios';
import { AxiosCacheInstance, CacheInstance, CacheRequestConfig } from './types';
type Options = CacheRequestConfig['cache'] & Partial<CacheInstance>;

View File

@ -1,4 +1,3 @@
import { CacheStorage } from '../storage/types';
import type {
AxiosInstance,
AxiosInterceptorManager,
@ -7,6 +6,7 @@ import type {
AxiosResponse,
Method
} from 'axios';
import { CacheStorage } from '../storage/types';
/**
* Options that can be overridden per request

View File

@ -1,5 +1,5 @@
import { AxiosCacheInstance } from '../axios/types';
import { parse } from '@tusbar/cache-control';
import { AxiosCacheInstance } from '../axios/types';
export function applyResponseInterceptor(axios: AxiosCacheInstance) {
axios.interceptors.response.use(async (response) => {