Repository navigation
Typescript bindings for R2 #92
|
@kentonv where do I find the typescript bindings for hitting R2 from a worker? |
Answered by
a-robinson
Oct 11, 2022
Replies: 2 comments 4 replies
|
They should be right along with all the other workers typescript bindings: https://github.com/cloudflare/workers-types And it looks like they are if you poke into the giant json file that contains all the types: https://github.com/cloudflare/workers-types/blob/master/src/workers.json |
0 replies
Answer selected by
unicomp21
|
@a-robinson is there an efficient way we can "long poll" for changes in a bucket? ie where the long poll will not unlatch until a timeout expires or a change occurs in the r2 bucket? |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They should be right along with all the other workers typescript bindings: https://github.com/cloudflare/workers-types
And it looks like they are if you poke into the giant json file that contains all the types: https://github.com/cloudflare/workers-types/blob/master/src/workers.json