use user from session

This commit is contained in:
john 2025-05-20 10:06:18 +02:00
parent 5f47162a50
commit 700eaf3eb2
16 changed files with 148 additions and 107 deletions

12
src/types.d.ts vendored
View file

@ -1,3 +1,5 @@
import { User } from './app/user/user.ts'
export interface ProblemDetails {
detail: string
title: string
@ -5,3 +7,13 @@ export interface ProblemDetails {
type: string
traceId: string
}
declare global {
interface Window {
$femto: FemtoApp
}
}
export interface FemtoApp {
user: User | null
}