Skip to content

Commit

Permalink
fix: type incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Dec 26, 2023
1 parent c68f47d commit f96b55d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cache/create.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AxiosInstance } from 'axios';
import type { Axios } from 'axios';
import { defaultHeaderInterpreter } from '../header/interpreter';
import { defaultRequestInterceptor } from '../interceptors/request';
import { defaultResponseInterceptor } from '../interceptors/response';
Expand Down Expand Up @@ -26,7 +26,7 @@ export interface CacheOptions extends Partial<CacheInstance>, Partial<CachePrope
* @returns The same instance with extended typescript types.
* @see https://axios-cache-interceptor.js.org/config
*/
export function setupCache(axios: AxiosInstance, options: CacheOptions = {}): AxiosCacheInstance {
export function setupCache(axios: Axios, options: CacheOptions = {}): AxiosCacheInstance {
const axiosCache = axios as AxiosCacheInstance;

if (axiosCache.defaults.cache) {
Expand Down

0 comments on commit f96b55d

Please sign in to comment.