mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
chore: CacheOptions at the top of the file
This commit is contained in:
parent
39777ccabb
commit
1615f284b3
4
src/cache/create.ts
vendored
4
src/cache/create.ts
vendored
@ -7,6 +7,8 @@ import { defaultKeyGenerator } from '../util/key-generator';
|
||||
import type { AxiosCacheInstance } from './axios';
|
||||
import type { CacheInstance, CacheProperties } from './cache';
|
||||
|
||||
export type CacheOptions = Partial<CacheInstance> & Partial<CacheProperties>;
|
||||
|
||||
/**
|
||||
* Apply the caching interceptors for a already created axios instance.
|
||||
*
|
||||
@ -58,5 +60,3 @@ export function useCache(
|
||||
|
||||
return axiosCache;
|
||||
}
|
||||
|
||||
export type CacheOptions = Partial<CacheInstance> & Partial<CacheProperties>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user