From 780ba2e8c20f0c88aa4b7af91160e8b21072d378 Mon Sep 17 00:00:00 2001 From: ToriLindsay Date: Mon, 17 Mar 2025 08:53:29 +0000 Subject: [PATCH] Added experimental to workers-types package --- src/content/docs/workers/runtime-apis/rpc/typescript.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workers/runtime-apis/rpc/typescript.mdx b/src/content/docs/workers/runtime-apis/rpc/typescript.mdx index 48d8d3708516780..da91e67122cb860 100644 --- a/src/content/docs/workers/runtime-apis/rpc/typescript.mdx +++ b/src/content/docs/workers/runtime-apis/rpc/typescript.mdx @@ -11,7 +11,7 @@ description: How TypeScript types for your Worker or Durable Object's RPC --- -The [`@cloudflare/workers-types`](https://www.npmjs.com/package/@cloudflare/workers-types) package provides the `Service` and `DurableObjectNamespace` types, each of which accepts a single type parameter for the server-side [`WorkerEntrypoint`](/workers/runtime-apis/bindings/service-bindings/rpc) or [`DurableObject`](/durable-objects/best-practices/create-durable-object-stubs-and-send-requests/#call-rpc-methods) types. +The [`@cloudflare/workers-types/experimental`](https://www.npmjs.com/package/@cloudflare/workers-types) package provides the `Service` and `DurableObjectNamespace` types, each of which accepts a single type parameter for the server-side [`WorkerEntrypoint`](/workers/runtime-apis/bindings/service-bindings/rpc) or [`DurableObject`](/durable-objects/best-practices/create-durable-object-stubs-and-send-requests/#call-rpc-methods) types. Using higher-order types, we automatically generate client-side stub types (e.g., forcing all methods to be async).