summaryrefslogtreecommitdiff
path: root/src/env.d.ts
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2025-06-27 10:10:56 +0200
committerYuval Adam <_@yuv.al>2025-06-27 10:10:56 +0200
commit2ad5ce929f6d69c9aaca71573744b30e02ab8bed (patch)
tree078cd3b8a968ebfd99e86492abb9564f183ec21a /src/env.d.ts
parent0282fb367ecfd3864cf94c27a44961a61e2ff6f2 (diff)
Add cloudflare basic impl
Diffstat (limited to 'src/env.d.ts')
-rw-r--r--src/env.d.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/env.d.ts b/src/env.d.ts
new file mode 100644
index 0000000..359b598
--- /dev/null
+++ b/src/env.d.ts
@@ -0,0 +1,13 @@
+/// <reference types="astro/client" />
+
+type D1Database = import('@cloudflare/workers-types').D1Database;
+
+declare namespace App {
+ interface Locals {
+ runtime: {
+ env: {
+ DB: D1Database;
+ };
+ };
+ }
+} \ No newline at end of file