How to correctly type the batch?
For whatever reason, batch is typed as MessageBatch<Error>. Do I have to configure this type myself, it would be nice if Workers had defined types for different event notifications. I only expect queue messages that come from created object notifications out of R2, so maybe this type should exist for ease of use. I also can't find where in the docs this topic is explored.
1 Reply
I can explicitly specify the type by modifying the use of satisfies, but this is not ideal since they type isn't generate by wrangler.