Skip to content

Commit 5318900

Browse files
committed
remove notes on workaround
1 parent 32f67d4 commit 5318900

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/content/docs/workers/runtime-apis/rpc/typescript.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ For example, if your client Worker had bindings to a Worker in `../sum-worker/`
2828
}
2929
/>
3030

31-
:::note
32-
Currently, this only works if your service binding targets a [named entrypoint](/workers/runtime-apis/bindings/service-bindings/rpc/#named-entrypoints), rather than the default export. If you are unable to use named entrypoints, we recommend you extend your `Env` type in a separate file in order to manually provide those types without risk of being overwritten by subsequent runs of `wrangler types`. This is a temporary limitation we are working to fix.
33-
:::
34-
3531
This will produce a `worker-configuration.d.ts` file that includes:
3632

3733
```ts title="worker-configuration.d.ts"

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,9 +1989,6 @@ wrangler types [<PATH>] [OPTIONS]
19891989
SERVICE_BINDING: Service<import("../bound-worker/src/index").Entrypoint>;
19901990
}
19911991
```
1992-
:::note
1993-
Currently, this only works if your service binding targets a [named entrypoint](/workers/runtime-apis/bindings/service-bindings/rpc/#named-entrypoints), rather than the default export. If you are unable to use named entrypoints, we recommend you extend your `Env` type in a separate file in order to manually provide those types without risk of being overwritten by subsequent runs of `wrangler types`. This is a temporary limitation we are working to fix.
1994-
:::
19951992

19961993
---
19971994

0 commit comments

Comments
 (0)