workers-types icon indicating copy to clipboard operation
workers-types copied to clipboard

TypeScript type definitions for authoring Cloudflare Workers.

Results 33 workers-types issues
Sort by recently updated
recently updated
newest added

When trying to return a new response for an R2 object, there is an error that `body` does not exist in the type `R2Object` or `R2ObjectBody`. Example script: ``` interface...

Types don't include the options `jpeg`, `png` (possibly others?) ```ts format?: "avif" | "webp" | "json"; ``` https://github.com/cloudflare/workers-types/blob/master/index.d.ts#L1369

Currently, `R2PutOptions` has no way of providing an `If-Match` condition, to allow conditional PUTs (write only if etag matches). Without this, how can we safeguard code against race conditions? I...

This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically....

I tried adding this library to an existing Creact-React-App application. I've added a hello world function, and I wrote this: ``` export const onRequest: PagesFunction = async (context) => {...

The two possibilities of - the listing being complete, `list_complete: true` and `cursor` is an empty string, or undefined (not tested) - there are more elements to be returned, `list_complete:...

The RequestInitCfProperties interface lacks the wepb property described in the documentation: https://developers.cloudflare.com/workers/runtime-apis/request/#requestinitcfproperties

According to: https://developers.cloudflare.com/workers/runtime-apis/request#requestinitcfproperties `RequestInitCfProperties` has a `webp` field (`webp?: boolean`)

Any chance you folks also generate *.webidl for the whole Cloudflare Workers runtime somewhere internally? Would be great to have the entire ecosystem available for CF workers customers as webidl(s),...