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
What's the correct way to type RPC methods in service bindings like these?
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?
