Skip to content

Commit

Permalink
fix: astro local types
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Dec 19, 2023
1 parent d6789b4 commit c72171f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/forms/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ export interface AstroLinkHTTP {
locals: AstroGlobal['locals'];
}

declare global {
export namespace App {
interface Locals {
session: {
[key: string]: any;
}
}
}
}

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

0 comments on commit c72171f

Please sign in to comment.