Service Workers and Typescript
Hello!
I'm trying to call worker B from worker A.
I've set up everything as described in the docs (https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/) and the calls work, but receive Typescript errors:
I found this on the forum: https://community.cloudflare.com/t/binding-service-rpc-using-typescript/652041
Still can't get something working
Found this as well, still can't figure it out: https://developers.cloudflare.com/workers/runtime-apis/rpc/typescript/
Note worker A and worker B are in separate repos, so maybe it's a moot point in this case? I'm not super familar with RPC stuff.
I'm trying to call worker B from worker A.
I've set up everything as described in the docs (https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/) and the calls work, but receive Typescript errors:
I found this on the forum: https://community.cloudflare.com/t/binding-service-rpc-using-typescript/652041
Still can't get something working
Found this as well, still can't figure it out: https://developers.cloudflare.com/workers/runtime-apis/rpc/typescript/
Note worker A and worker B are in separate repos, so maybe it's a moot point in this case? I'm not super familar with RPC stuff.
Cloudflare Docs
Facilitate Worker-to-Worker communication.

Cloudflare Docs
How TypeScript types for your Worker or Durable Object's RPC methods are generated and exposed to clients
