mirror of
https://github.com/BradNut/TofuStack
synced 2025-09-08 17:40:26 +00:00
21 lines
468 B
TypeScript
21 lines
468 B
TypeScript
|
|
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 {};
|