Files
nadir-webui/src/app.d.ts
T
2026-06-22 17:47:16 +02:00

24 lines
515 B
TypeScript

// See https://svelte.dev/docs/kit/types#app.d.ts
import type { auth } from '$lib/auth/server';
// for information about these interfaces
declare global {
type Auth = typeof auth.$Infer;
type Fetch = typeof fetch;
type Session = Auth['Session']['session'];
type User = Auth['Session']['user'];
namespace App {
// interface Error {}
interface Locals {
session: null | Session;
user: null | User;
}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
export {};