Skip to content

Commit 790f0bf

Browse files
just-be-devclaude
andcommitted
fix(types): add @cloudflare/workers-types reference to env.d.ts
Makes R2Bucket and other Cloudflare Worker globals available across the project without per-file imports, fixing the type error in src/lib/micro-r2.ts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f1d8530 commit 790f0bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/env.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// <reference types="@cloudflare/workers-types" />
2+
13
type Runtime = import("@astrojs/cloudflare").Runtime<{
24
MICRO_BUCKET: R2Bucket;
35
MICRO_SECRET?: string;

0 commit comments

Comments
 (0)