Add TypeScript types for middleware locals
This commit is contained in:
15
src/env.d.ts
vendored
15
src/env.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user