Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions types/defines/cf.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ interface RequestInitCfProperties extends Record<string, unknown> {
minify?: RequestInitCfPropertiesImageMinify;
mirage?: boolean;
polish?: "lossy" | "lossless" | "off";
r2?: RequestInitCfPropertiesR2;
/**
* Redirects the request to an alternate origin server. You can use this,
* for example, to implement load balancing across several origins.
Expand Down Expand Up @@ -300,6 +301,13 @@ interface RequestInitCfPropertiesImageMinify {
html?: boolean;
}

interface RequestInitCfPropertiesR2 {
/**
* Colo id of bucket that an object is stored in
*/
bucketColoId?: number;
}

/**
* Request metadata provided by Cloudflare's edge.
*/
Expand Down