Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 576062f

Browse files
authored
Include jpeg,png in cf.image.format (#269)
#268
1 parent 4fe75b2 commit 576062f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

overrides/cf.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,10 @@ interface RequestInitCfPropertiesImage extends BasicImageTransformations {
231231
* - json: instead of generating an image, outputs information about the
232232
* image, in JSON format. The JSON object will contain image size
233233
* (before and after resizing), source image’s MIME type, file size, etc.
234+
* - jpeg: generate images in JPEG format.
235+
* - png: generate images in PNG format.
234236
*/
235-
format?: "avif" | "webp" | "json";
237+
format?: "avif" | "webp" | "json" | "jpeg" | "png";
236238
/**
237239
* Whether to preserve animation frames from input files. Default is true.
238240
* Setting it to false reduces animations to still images. This setting is

0 commit comments

Comments
 (0)