From d413eb99a667a53d15a3817136e4ed729918b034 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Sat, 10 Jan 2026 17:08:00 +0000 Subject: [PATCH] Update outdated links for workers-types --- .../docs/images/transform-images/transform-via-workers.mdx | 2 +- src/content/docs/workers/languages/javascript/index.mdx | 2 +- src/content/docs/workers/languages/typescript/index.mdx | 4 ++-- .../docs/workers/platform/changelog/historical-changelog.mdx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/content/docs/images/transform-images/transform-via-workers.mdx b/src/content/docs/images/transform-images/transform-via-workers.mdx index 5a90a560c4..315cc83d4f 100644 --- a/src/content/docs/images/transform-images/transform-via-workers.mdx +++ b/src/content/docs/images/transform-images/transform-via-workers.mdx @@ -137,7 +137,7 @@ fetch(imageURL, { }); ``` -These typings are also available in [our Workers TypeScript definitions library](https://github.com/cloudflare/workers-types). +These typings are also available in [our Workers TypeScript definitions library](https://github.com/cloudflare/workerd/tree/main/npm/workers-types). ## Configure a Worker diff --git a/src/content/docs/workers/languages/javascript/index.mdx b/src/content/docs/workers/languages/javascript/index.mdx index e1386eb7ea..ab885fc80c 100644 --- a/src/content/docs/workers/languages/javascript/index.mdx +++ b/src/content/docs/workers/languages/javascript/index.mdx @@ -15,7 +15,7 @@ Refer to [Runtime APIs](/workers/runtime-apis/) for more information on specific * [Getting Started](/workers/get-started/guide/) * [Quickstarts](/workers/get-started/quickstarts/) – More example repos to use as a basis for your projects -* [TypeScript type definitions](https://github.com/cloudflare/workers-types) +* [TypeScript type definitions](https://github.com/cloudflare/workerd/tree/main/npm/workers-types) * [JavaScript and web standard APIs](/workers/runtime-apis/web-standards/) * [Tutorials](/workers/tutorials/) * [Examples](/workers/examples/?languages=JavaScript) diff --git a/src/content/docs/workers/languages/typescript/index.mdx b/src/content/docs/workers/languages/typescript/index.mdx index c443f9b3ca..a6546b16a2 100644 --- a/src/content/docs/workers/languages/typescript/index.mdx +++ b/src/content/docs/workers/languages/typescript/index.mdx @@ -12,7 +12,7 @@ import { TabItem, Tabs, PackageManagers, Render } from "~/components"; TypeScript is a first-class language on Cloudflare Workers. All APIs provided in Workers are fully typed, and type definitions are generated directly from [workerd](https://github.com/cloudflare/workerd), the open-source Workers runtime. -We recommend you generate types for your Worker by running [`wrangler types`](/workers/wrangler/commands/#types). Cloudflare also publishes type definitions to [GitHub](https://github.com/cloudflare/workers-types) and [npm](https://www.npmjs.com/package/@cloudflare/workers-types) (`npm install -D @cloudflare/workers-types`). +We recommend you generate types for your Worker by running [`wrangler types`](/workers/wrangler/commands/#types). Cloudflare also publishes type definitions to [GitHub](https://github.com/cloudflare/workerd/tree/main/npm/workers-types) and [npm](https://www.npmjs.com/package/@cloudflare/workers-types) (`npm install -D @cloudflare/workers-types`).

Generate types that match your Worker's configuration @@ -160,6 +160,6 @@ We recommend you commit your generated types file for use in CI. Alternatively, ### Resources - [TypeScript template](https://github.com/cloudflare/workers-sdk/tree/main/packages/create-cloudflare/templates/hello-world/ts) -- [@cloudflare/workers-types](https://github.com/cloudflare/workers-types) +- [workers-types](https://github.com/cloudflare/workerd/tree/main/npm/workers-types) - [Runtime APIs](/workers/runtime-apis/) - [TypeScript Examples](/workers/examples/?languages=TypeScript) diff --git a/src/content/docs/workers/platform/changelog/historical-changelog.mdx b/src/content/docs/workers/platform/changelog/historical-changelog.mdx index 278da58f5b..e056f659c6 100644 --- a/src/content/docs/workers/platform/changelog/historical-changelog.mdx +++ b/src/content/docs/workers/platform/changelog/historical-changelog.mdx @@ -57,7 +57,7 @@ This page tracks changes made to Cloudflare Workers before 2023. For a view of m * A `Headers` object with the `range` header can now be used for range within `R2GetOptions` for the `get` R2 binding. * When headers are used for `onlyIf` within `R2GetOptions` for the `get` R2 binding, they now correctly compare against the second granularity. This allows correctly round-tripping to the browser and back. Additionally, `secondsGranularity` is now an option that can be passed into options constructed by hand to specify this when constructing outside Headers for the same effect. -* Fixed the TypeScript type of `DurableObjectState.id` in [@cloudflare/workers-types](https://github.com/cloudflare/workers-types) to always be a `DurableObjectId`. +* Fixed the TypeScript type of `DurableObjectState.id` in [@cloudflare/workers-types](https://github.com/cloudflare/workerd/tree/main/npm/workers-types) to always be a `DurableObjectId`. * Validation errors during Worker upload for module scripts now include correct line and column numbers. * Bugfix, Profiling tools and flame graphs via Chrome’s debug tools now properly report information.