diff --git a/documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md b/documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md index 9a4b2b7e717a..635377932c13 100644 --- a/documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md +++ b/documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md @@ -82,11 +82,11 @@ export async function POST({ request, platform }) { > [!NOTE] SvelteKit's built-in `$env` module should be preferred for environment variables. -To include type declarations for your bindings, reference them in your `src/app.d.ts`: +To make these types available to your app, install `@cloudflare/workers-types` and reference them in your `src/app.d.ts`: ```ts /// file: src/app.d.ts -import { KVNamespace, DurableObjectNamespace } from '@cloudflare/workers-types'; ++++import { KVNamespace, DurableObjectNamespace } from '@cloudflare/workers-types';+++ declare global { namespace App { diff --git a/documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md b/documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md index bd53dd4d8e7d..3ce75c47c353 100644 --- a/documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md +++ b/documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md @@ -103,11 +103,11 @@ export async function POST({ request, platform }) { > [!NOTE] SvelteKit's built-in `$env` module should be preferred for environment variables. -To include type declarations for your bindings, reference them in your `src/app.d.ts`: +To make these types available to your app, install `@cloudflare/workers-types` and reference them in your `src/app.d.ts`: ```ts /// file: src/app.d.ts -import { KVNamespace, DurableObjectNamespace } from '@cloudflare/workers-types'; ++++import { KVNamespace, DurableObjectNamespace } from '@cloudflare/workers-types';+++ declare global { namespace App {