Created
January 19, 2019 11:09
-
-
Save PavelPolyakov/5a4311936a0ef370a47826980fecb9bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
refers to https://medium.com/car2godevs/fastify-with-typescript-production-ready-integration-2303318ecd9e