Skip to main content
This package has been archived, and as such it is read-only.
This release is 2 versions behind 24.6.2 — the latest version of @rivet-gg/actor-client. Jump to latest

🔧 Rivet Actors have built-in RPC, state, and events — the easiest way to build modern applications.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
70%
Published
3 months ago (24.6.0)
type alias ActorHandle

Proxied wrapper of RawActorHandle that allows calling RPC functions implicitly.

Private methods (e.g. those starting with _) are automatically excluded.

Type Parameters

A = unknown

Definition

ActorHandleRaw & [K in keyof A in keyof K extends string ? K extends `_${string}` ? never : K : K]: A[K] extends (...args: infer Args) => infer Return ? ActorRPCFunction<Args, Return> : never

Add Package

deno add jsr:@rivet-gg/actor-client

Import symbol

import { type ActorHandle } from "@rivet-gg/actor-client";

---- OR ----

Import directly with a jsr specifier

import { type ActorHandle } from "jsr:@rivet-gg/actor-client";

Add Package

npx jsr add @rivet-gg/actor-client

Import symbol

import { type ActorHandle } from "@rivet-gg/actor-client";

Add Package

yarn dlx jsr add @rivet-gg/actor-client

Import symbol

import { type ActorHandle } from "@rivet-gg/actor-client";

Add Package

pnpm dlx jsr add @rivet-gg/actor-client

Import symbol

import { type ActorHandle } from "@rivet-gg/actor-client";

Add Package

bunx jsr add @rivet-gg/actor-client

Import symbol

import { type ActorHandle } from "@rivet-gg/actor-client";