Skip to content

Commit c72171f

Browse files
committed
fix: astro local types
1 parent d6789b4 commit c72171f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/forms/src/utils.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ export interface AstroLinkHTTP {
66
locals: AstroGlobal['locals'];
77
}
88

9+
declare global {
10+
export namespace App {
11+
interface Locals {
12+
session: {
13+
[key: string]: any;
14+
}
15+
}
16+
}
17+
}
918

1019
export type ModifyDeep<A, B extends DeepPartialAny<A>> = {
1120
[K in keyof A | keyof B]: // For all keys in A and B:

0 commit comments

Comments
 (0)