24 lines
515 B
TypeScript
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 {};
|