Skip to content

Commit

Permalink
Add types for no-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaAtulTewari authored and fhanau committed Dec 31, 2024
1 parent cdba4b3 commit 3d3c473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions types/generated-snapshot/experimental/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>>
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
*/
cache?: "no-store";
cache?: "no-store" | "no-cache";
}
interface RequestInit<Cf = CfProperties> {
/* A string to set request's method. */
Expand All @@ -1691,7 +1691,7 @@ interface RequestInit<Cf = CfProperties> {
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. */
Expand Down
4 changes: 2 additions & 2 deletions types/generated-snapshot/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Cf = CfProperties> {
/* A string to set request's method. */
Expand All @@ -1699,7 +1699,7 @@ export interface RequestInit<Cf = CfProperties> {
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. */
Expand Down

0 comments on commit 3d3c473

Please sign in to comment.