Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ export async function POST({ request, platform }) {

> SvelteKit's built-in `$env` module should be preferred for environment variables.

To make these types available to your app, 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`:

```diff
/// file: src/app.d.ts
+import { KVNamespace, DurableObjectNamespace } from '@cloudflare/workers-types';

declare global {
namespace App {
interface Platform {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ export async function POST({ request, platform }) {

> SvelteKit's built-in `$env` module should be preferred for environment variables.

To make these types available to your app, 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`:

```diff
/// file: src/app.d.ts
+import { KVNamespace, DurableObjectNamespace } from '@cloudflare/workers-types';

declare global {
namespace App {
interface Platform {
Expand Down