language-learning-app/frontend/src/app.d.ts
2026-05-04 07:59:03 +01:00

23 lines
468 B
TypeScript

import type { ApiClient } from './client/types.gen.ts';
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
interface Locals {
apiClient?: ApiClient;
authToken: string | null;
isAdmin: boolean;
flash?: {
type: 'success';
message: string;
};
}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
export {};