Skip to content

Commit dd16fb1

Browse files
pedrosousadriimus
andauthored
[Workers] Fix typos in TypeScript page (#19483)
Co-authored-by: Cristian Petre <[email protected]>
1 parent a25211b commit dd16fb1

File tree

1 file changed

+3
-3
lines changed
  • src/content/docs/workers/languages/typescript

1 file changed

+3
-3
lines changed

src/content/docs/workers/languages/typescript/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Note that if you have specified a custom path for the runtime types file, you sh
102102

103103
When switching to `wrangler types --experimental-include-runtime`, you'll want to ensure that your development process always uses the most up-to-date types. The main thing to remember here is that - regardless of your specific framework or build tools - you should run the `wrangler types --experimental-include-runtime` command before any development tasks that rely on TypeScript. This ensures your editor and build tools always have access to the latest types.
104104

105-
Most projects will have existing build and development scripts scripts, as well as some type-checking. In the example below, we're adding the `wrangler types --experimental-include-runtime` before the type-checking script in the project:
105+
Most projects will have existing build and development scripts, as well as some type-checking. In the example below, we're adding the `wrangler types --experimental-include-runtime` before the type-checking script in the project:
106106

107107
```json
108108
{
@@ -114,7 +114,7 @@ Most projects will have existing build and development scripts scripts, as well
114114
}
115115
```
116116

117-
In CI, you may have a separate build and test commands. It is best practice to run `wrangler types --experimental-include-runtime` before other CI commands. For example:
117+
In CI, you may have separate build and test commands. It is best practice to run `wrangler types --experimental-include-runtime` before other CI commands. For example:
118118

119119
<Tabs> <TabItem label="npm">
120120

@@ -156,7 +156,7 @@ By integrating the `wrangler types --experimental-include-runtime` command into
156156

157157
#### Transitive loading of `@types/node` overrides `@cloudflare/workers-types`
158158

159-
You project's dependencies may load the `@types/node` package on their own. As of `@types/[email protected]` that package now overrides `Request`, `Response` and `fetch` types (possibly others) specified by `@cloudflare/workers-types` causing type errors.
159+
Your project's dependencies may load the `@types/node` package on their own. As of `@types/[email protected]` that package now overrides `Request`, `Response` and `fetch` types (possibly others) specified by `@cloudflare/workers-types` causing type errors.
160160

161161
The way to get around this issue currently is to pin the version of `@types/node` to `20.8.3` in your `package.json` like this:
162162

0 commit comments

Comments
 (0)