mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
lint
This commit is contained in:
parent
2633b9cbe0
commit
2054647d74
@ -1,20 +1,13 @@
|
||||
import type { CacheRequestConfig } from '../cache/axios.js';
|
||||
import { Header } from '../header/headers.js';
|
||||
import type { MaybePromise } from '../util/types.js';
|
||||
import type {
|
||||
AxiosStorage,
|
||||
CachedStorageValue,
|
||||
StaleStorageValue,
|
||||
StorageValue
|
||||
} from './types.js';
|
||||
import type { AxiosStorage, CachedStorageValue, StaleStorageValue, StorageValue } from './types.js';
|
||||
|
||||
/** Returns true if the provided object was created from {@link buildStorage} function. */
|
||||
export const isStorage = (obj: unknown): obj is AxiosStorage =>
|
||||
!!obj && !!(obj as Record<string, boolean>)['is-storage'];
|
||||
|
||||
function hasUniqueIdentifierHeader(
|
||||
value: CachedStorageValue | StaleStorageValue
|
||||
): boolean {
|
||||
function hasUniqueIdentifierHeader(value: CachedStorageValue | StaleStorageValue): boolean {
|
||||
const headers = value.data.headers;
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user