| 1 | // See https://svelte.dev/docs/kit/types#app.d.ts |
| 2 | // for information about these interfaces |
| 3 | declare global { |
| 4 | namespace App { |
| 5 | // interface Error {} |
| 6 | interface Locals { |
| 7 | user: { authenticated: boolean } | null; |
| 8 | } |
| 9 | // interface PageData {} |
| 10 | // interface PageState {} |
| 11 | interface Platform { |
| 12 | env: { |
| 13 | DB: D1Database; |
| 14 | PHOTOS: R2Bucket; |
| 15 | ADMIN_PASSWORD_HASH: string; |
| 16 | SESSION_SECRET: string; |
| 17 | }; |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | export {}; |