brf/shared/global.d.ts
2025-12-13 21:12:08 +01:00

28 lines
383 B
TypeScript

import 'fastify'
import { ViteDevServer } from 'vite'
declare global {
type ANY = any
const __STATE__: any
}
declare module 'fastify' {
interface FastifyInstance {
auth: string
devServer: ViteDevServer
}
interface FastifyRequest {
login: string
user: Promise<string>
}
interface FastifyReply {
ctx: Record<string, any> | null
}
}
export {}