8000 feat(cloudflare): Durable Object RPC types by sam-goodwin · Pull Request #212 · sam-goodwin/alchemy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(cloudflare): Durable Object RPC types #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2025
Merged

feat(cloudflare): Durable Object RPC types #212

merged 2 commits into from
May 28, 2025

Conversation

sam-goodwin
Copy link
Owner

You can now pass the type of the Durable Object to the DurableObjectNamespace binding to enable type-inference with RPC methods.

new DurableObjectNamespace<HelloWorldDO>("HelloWorldDO", {
  className: "HelloWorldDO",
  sqlite: true,
}),

@sam-goodwin sam-goodwin merged commit 78bab20 into main May 28, 2025
1 check passed
@sam-goodwin sam-goodwin deleted the sam/rpc branch May 28, 2025 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0