Move StoredResponse interface before functions
This commit is contained in:
parent
3cbcb5b375
commit
337ee85b0c
@ -18,6 +18,11 @@ export const MAX_CACHE_SIZE_BYTES = Math.min(
|
||||
// Extracts the type of the 'method' property from RequestInit
|
||||
type FetchMethod = NonNullable<RequestInit["method"]>;
|
||||
|
||||
export interface StoredResponse {
|
||||
isRevivalNeeded: boolean;
|
||||
response: Response;
|
||||
}
|
||||
|
||||
function makeEnvelopeValue(
|
||||
method: string,
|
||||
url: string,
|
||||
@ -51,11 +56,6 @@ function isMetadata(url: string): boolean {
|
||||
return secureApi || smallish;
|
||||
}
|
||||
|
||||
export interface StoredResponse {
|
||||
isRevivalNeeded: boolean;
|
||||
response: Response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a stored Response from the filesystem if available.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user