diff options
| author | Yuval Adam <_@yuv.al> | 2025-06-27 10:10:56 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2025-06-27 10:10:56 +0200 |
| commit | 2ad5ce929f6d69c9aaca71573744b30e02ab8bed (patch) | |
| tree | 078cd3b8a968ebfd99e86492abb9564f183ec21a /src/env.d.ts | |
| parent | 0282fb367ecfd3864cf94c27a44961a61e2ff6f2 (diff) | |
Add cloudflare basic impl
Diffstat (limited to 'src/env.d.ts')
| -rw-r--r-- | src/env.d.ts | 13 |
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 |
