femto-webapp/src/types.d.ts
2025-05-29 13:21:37 +02:00

24 lines
415 B
TypeScript

import { User } from './app/user/user.ts'
export interface ProblemDetails {
detail: string
title: string
status: number
type: string
traceId: string
}
declare global {
interface Window {
$femto: FemtoApp
}
type Timeout = ReturnType<typeof setTimeout>
}
export interface FemtoApp {
version: string
user: User | null
authService: AuthService | null
postsService: PostsService | null
}