aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/types/fastify.d.ts
blob: 7c2341dfb01b43a148fb5f5bb77e44422e522a42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { FastifyRequest, RequestGenericInterface } from "fastify";
import { ReplyGenericInterface } from "fastify/types/reply";
import { Settings } from ".";
import { ServerCache } from "../cache";

export interface Request extends RequestGenericInterface {
	Params: Record<string, string>,
	Querystring: Record<string, string>
}

export interface Route extends Request, ReplyGenericInterface {}

export type CoolFastifyRequest = FastifyRequest<Route>;

export type FastifyPluginOptions = {
	config: {
		settings: Settings,
		cache: ServerCache | null
	}
}