TofuStack/src/app.d.ts

21 lines
468 B
TypeScript
Raw Normal View History

2024-05-25 06:02:26 +00:00
import { ApiClient } from '$lib/server/api';
import type { User } from 'lucia';
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
interface Locals {
api: ApiClient['api'];
getAuthedUser: () => Promise<User | null>;
getAuthedUserOrThrow: () => Promise<User>;
}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
export {};