brf/global.d.ts
2025-11-23 21:44:01 +01:00

35 lines
505 B
TypeScript

import 'fastify'
import { ViteDevServer } from 'vite'
declare global {
type ANY = any
const __STATE__: any
}
declare module '*.scss'
declare module '*.module.scss' {
const classes: Record<string, string>
export default classes
}
declare module 'fastify' {
interface FastifyInstance {
auth: string
devServer: ViteDevServer
}
interface FastifyRequest {
login: string
user: Promise<string>
}
interface FastifyReply {
ctx: { [key: string]: any }
}
}
export {}