From 64e82edd6f38f2b6969c3367ec440ac06dd94eda Mon Sep 17 00:00:00 2001 From: Aditya Tewari Date: Tue, 31 Dec 2024 15:23:08 -0600 Subject: [PATCH] Add types for no-cache --- types/generated-snapshot/experimental/index.d.ts | 4 ++-- types/generated-snapshot/experimental/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/generated-snapshot/experimental/index.d.ts b/types/generated-snapshot/experimental/index.d.ts index c9c75b66774..2cc1380fb28 100755 --- a/types/generated-snapshot/experimental/index.d.ts +++ b/types/generated-snapshot/experimental/index.d.ts @@ -1677,7 +1677,7 @@ interface Request> * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache) */ - cache?: "no-store"; + cache?: "no-store" | "no-cache"; } interface RequestInit { /* A string to set request's method. */ @@ -1691,7 +1691,7 @@ interface RequestInit { fetcher?: Fetcher | null; cf?: Cf; /* A string indicating how the request will interact with the browser's cache to set request's cache. */ - cache?: "no-store"; + cache?: "no-store" | "no-cache"; /* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ integrity?: string; /* An AbortSignal to set request's signal. */ diff --git a/types/generated-snapshot/experimental/index.ts b/types/generated-snapshot/experimental/index.ts index a5e148ed626..a175c5ebe17 100755 --- a/types/generated-snapshot/experimental/index.ts +++ b/types/generated-snapshot/experimental/index.ts @@ -1685,7 +1685,7 @@ export interface Request< * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache) */ - cache?: "no-store"; + cache?: "no-store" | "no-cache"; } export interface RequestInit { /* A string to set request's method. */ @@ -1699,7 +1699,7 @@ export interface RequestInit { fetcher?: Fetcher | null; cf?: Cf; /* A string indicating how the request will interact with the browser's cache to set request's cache. */ - cache?: "no-store"; + cache?: "no-store" | "no-cache"; /* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ integrity?: string; /* An AbortSignal to set request's signal. */