cloudflare / cloudflare/workerd

Missing `include` field on `R2ListOptions`?

Open
#827 1 comment 0 reactions 1 assignee Claimed by @workers-devprod View on GitHub
types
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

The `include` filed seems to be missing on the `R2ListOptions`, even though it does work and is documented [here](https://developers.cloudflare.com/r2/api/workers/workers-api-reference/#r2listoptions).

image

"Object literal may only specify known properties, and 'include' does not exist in type 'R2ListOptions'." (LSP)

The `R2ListOptions` interface installed with `@cloudflare/workers-types`:

```ts
declare interface R2ListOptions {
limit?: number;
prefix?: string;
cursor?: string;
delimiter?: string;
startAfter?: string;
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.