Worker service binding RPC TypeScript types
This question is about how to get TypeScript to recognize an RPC method in a service binding worker. Both workers were created in the last week. E.g.
Then in Worker A, TypeScript knows that
env.sendEmailWorker is valid, but it is of type any, and so the sendVerificationCode method is not available.
What's the correct way to type RPC methods in service bindings like these?1 Reply
GitHub
ambient namespace for Env breaks types for subworkers with service ...
What versions & operating system are you using? Wrangler 4.24.4, Node v24.3.0, on Linux (NixOS 25.05) Please provide a link to a minimal reproduction No response Describe the Bug I have one wor...