From 3345ee02371411b8ec35540d085952056a6cd697 Mon Sep 17 00:00:00 2001
From: Emmanuel Raviart <emmanuel@raviart.com>
Date: Tue, 10 Oct 2023 15:49:25 +0200
Subject: [PATCH] Update app.d.ts

---
 src/app.d.ts | 28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)

diff --git a/src/app.d.ts b/src/app.d.ts
index 699ebfc3c..e43679b4f 100644
--- a/src/app.d.ts
+++ b/src/app.d.ts
@@ -1,17 +1,23 @@
 // See https://kit.svelte.dev/docs/types#app
 // for information about these interfaces
 // and what to do when importing types
-declare namespace App {
-  // interface Error {}
+// See https://kit.svelte.dev/docs/types#app
+// for information about these interfaces
+declare global {
+  namespace App {
+    // interface Error {}
 
-  type OpenIdConnectLocals =
-    import("$lib/server/openid_connect_handler").OpenIdConnectLocals
-  type UserLocals = import("$lib/server/user_handler").UserLocals
-  interface Locals extends UserLocals, OpenIdConnectLocals {
-    id_token?: string
-    user?: import("$lib/users").User
-  }
+    type OpenIdConnectLocals =
+      import("$lib/server/openid_connect_handler").OpenIdConnectLocals
+    type UserLocals = import("$lib/server/user_handler").UserLocals
+    interface Locals extends UserLocals, OpenIdConnectLocals {
+      id_token?: string
+      user_id?: string
+    }
 
-  // interface PageData {}
-  // interface Platform {}
+    // interface PageData {}
+    // interface Platform {}
+  }
 }
+
+export {}
-- 
GitLab