Skip to content

Instantly share code, notes, and snippets.

@PavelPolyakov
Created January 19, 2019 11:09
Show Gist options
  • Save PavelPolyakov/5a4311936a0ef370a47826980fecb9bd to your computer and use it in GitHub Desktop.
Save PavelPolyakov/5a4311936a0ef370a47826980fecb9bd to your computer and use it in GitHub Desktop.
import * as fastify from "fastify";
import * as http from "http";
import { Db } from "../modules/db";
declare module "fastify" {
export interface FastifyInstance<
HttpServer = http.Server,
HttpRequest = http.IncomingMessage,
HttpResponse = http.ServerResponse
> {
blipp(): void;
db: Db;
}
}
@PavelPolyakov
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment