Connection to an actor. Allows calling actor's remote procedure calls with inferred types. See ActorHandleRaw for underlying methods.
Examples
Example 1
const room = await client.get<ChatRoom>(...etc...);
// This calls the rpc named `sendMessage` on the `ChatRoom` actor.
await room.sendMessage('Hello, world!');
Private methods (e.g. those starting with _) are automatically excluded.
Type Parameters
A = unknown
The actor class that this handle is connected to.
Definition
ActorHandleRaw & [K in keyofA in keyof Kextendsstring ? Kextends`_${string}` ? never : K : K]: A[K] extends (...args: infer Args) => infer Return ? ActorRPCFunction<Args, Return> : never