summaryrefslogtreecommitdiff
path: root/src/env.d.ts
diff options
context:
space:
mode:
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