/ src / app.d.ts
app.d.ts
 1  // See https://svelte.dev/docs/kit/types#app.d.ts
 2  // for information about these interfaces
 3  import type { Node, User } from "$lib/server/db/schema";
 4  
 5  declare global {
 6    namespace App {
 7      // interface Error {}
 8      interface Locals {
 9        user: (User & { nodes: Node[] }) | null;
10      }
11      // interface PageData {}
12      // interface PageState {}
13      // interface Platform {}
14    }
15  }
16  
17  export {};