Typescript bindings for R2 #92
-
@kentonv where do I find the typescript bindings for hitting R2 from a worker? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
@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? |
Beta Was this translation helpful? Give feedback.
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