youtuber-blog/src/fastify.d.ts

11 lines
254 B
TypeScript
Raw Normal View History

import type { db } from "./db";
import type { Redis } from "./utils";
declare module "fastify" {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface FastifyRequest {
db: typeof db;
redis: typeof Redis;
}
}