Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add strict R2Objects types #472

Merged
merged 1 commit into from
Mar 28, 2023
Merged

Add strict R2Objects types #472

merged 1 commit into from
Mar 28, 2023

Conversation

mrbbot
Copy link
Contributor

@mrbbot mrbbot commented Mar 23, 2023

When listing R2 objects, a cursor is only returned when truncated is true. This change encodes this constraint in TypeScript, similar to KVNamespaceListResult.

Closes #315

When listing R2 objects, a `cursor` is only returned when `truncated`
is `true`. This change encodes this constraint in TypeScript, similar
to `KVNamespaceListResult`.

Closes #315
@mrbbot mrbbot added the types Related to @cloudflare/workers-types label Mar 23, 2023
@mrbbot mrbbot requested a review from penalosa March 23, 2023 17:03
@mrbbot mrbbot merged commit d91547d into main Mar 28, 2023
@mrbbot mrbbot deleted the bcoll/strict-r2-objects-type branch March 28, 2023 15:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
types Related to @cloudflare/workers-types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Types] R2Objects stricter type
2 participants