Update outdated links for workers-types

This commit is contained in:
Dario Piotrowicz 2026-01-10 17:08:00 +00:00
parent daed515aa7
commit d413eb99a6
4 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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)

View file

@ -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`).
<h3 id="generate-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)

View file

@ -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 Chromes debug tools now properly report information.