Add TypeScript types for middleware locals

This commit is contained in:
cawcenter
2025-12-16 16:45:08 -05:00
parent 64f22d67d8
commit df6727b838

15
src/env.d.ts vendored
View File

@@ -1 +1,14 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
declare namespace App {
interface Locals {
site?: any;
siteId?: string;
page?: any;
post?: any;
isAdminRoute?: boolean;
isPlatformAdmin?: boolean;
scope?: string;
}
}