Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/content/docs/workers/runtime-apis/rpc/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ For example, if your client Worker had bindings to a Worker in `../sum-worker/`
}
/>

:::note
If your service binding targets a `WorkerEntrypoint` that is a default export, make sure you set `entrypoint: "default"` in your Wrangler config when you configure your service binding.
:::

This will produce a `worker-configuration.d.ts` file that includes:

```ts title="worker-configuration.d.ts"
Expand Down
1 change: 1 addition & 0 deletions src/content/docs/workers/wrangler/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1985,6 +1985,7 @@ wrangler types [<PATH>] [OPTIONS]
SERVICE_BINDING: Service<import("../bound-worker/src/index").Entrypoint>;
}
```
- If your service binding targets a [`WorkerEntrypoint`](/workers/runtime-apis/bindings/service-bindings/rpc/) that is a default export, make sure you set `entrypoint: "default"` in your Wrangler config when you configure your service binding.

---

Expand Down