Hi, you guys might want to extend the cf docs on worker RPC to include the utility type `InstanceTyp
Hi, you guys might want to extend the cf docs on worker RPC to include the utility type
https://developers.cloudflare.com/workers/runtime-apis/rpc/
An example:
Then, use the CounterServiceStub in your RPC client for type-checked method signatures for the downstream worker you are calling.
InstanceType. It automatically types your RPC classes so you could use your RPC methods in other workers with type-safety.https://developers.cloudflare.com/workers/runtime-apis/rpc/
An example:
Then, use the CounterServiceStub in your RPC client for type-checked method signatures for the downstream worker you are calling.
Cloudflare Docs
The built-in, JavaScript-native RPC system built into Workers and Durable Objects.


