chore: CacheOptions at the top of the file

This commit is contained in:
arthurfiorette 2021-12-09 17:50:31 -03:00
parent 39777ccabb
commit 1615f284b3
No known key found for this signature in database
GPG Key ID: 9D190CD53C53C555

4
src/cache/create.ts vendored
View File

@ -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>;