28 lines
383 B
TypeScript
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 {}
|