diff --git a/apps/svelte.dev/content/docs/kit/25-build-and-deploy/60-adapter-cloudflare.md b/apps/svelte.dev/content/docs/kit/25-build-and-deploy/60-adapter-cloudflare.md index 3704dc0454b8..9a4b2b7e717a 100644 --- a/apps/svelte.dev/content/docs/kit/25-build-and-deploy/60-adapter-cloudflare.md +++ b/apps/svelte.dev/content/docs/kit/25-build-and-deploy/60-adapter-cloudflare.md @@ -86,6 +86,8 @@ To include type declarations for your bindings, reference them in your `src/app. ```ts /// file: src/app.d.ts +import { KVNamespace, DurableObjectNamespace } from '@cloudflare/workers-types'; + declare global { namespace App { interface Platform { diff --git a/apps/svelte.dev/content/docs/kit/25-build-and-deploy/70-adapter-cloudflare-workers.md b/apps/svelte.dev/content/docs/kit/25-build-and-deploy/70-adapter-cloudflare-workers.md index b4e270f62283..bd53dd4d8e7d 100644 --- a/apps/svelte.dev/content/docs/kit/25-build-and-deploy/70-adapter-cloudflare-workers.md +++ b/apps/svelte.dev/content/docs/kit/25-build-and-deploy/70-adapter-cloudflare-workers.md @@ -107,6 +107,8 @@ To include type declarations for your bindings, reference them in your `src/app. ```ts /// file: src/app.d.ts +import { KVNamespace, DurableObjectNamespace } from '@cloudflare/workers-types'; + declare global { namespace App { interface Platform {