fastify-typeorm-plugin
Advanced tools
+37
| import * as http from 'http'; | ||
| import * as fastify from 'fastify'; | ||
| import * as typeorm from 'typeorm'; | ||
| declare namespace fastifyTypeorm { | ||
| interface FastifyTypeormNestedObject { | ||
| [name: string]: typeorm.Connection; | ||
| } | ||
| interface FastifyTypeormOpts { | ||
| connection?: typeorm.Connection; | ||
| /** | ||
| * Namespace | ||
| */ | ||
| namespace?: string; | ||
| } | ||
| type FastifyTypeormOptions = typeorm.ConnectionOptions & FastifyTypeormOpts; | ||
| } | ||
| declare module 'fastify' { | ||
| interface FastifyInstance< | ||
| HttpServer = http.Server, | ||
| HttpRequest = http.IncomingMessage, | ||
| HttpResponse = http.ServerResponse | ||
| > { | ||
| orm: typeorm.Connection & fastifyTypeorm.FastifyTypeormNestedObject; | ||
| } | ||
| } | ||
| declare let fastifyTypeorm: fastify.Plugin< | ||
| http.Server, | ||
| http.IncomingMessage, | ||
| http.ServerResponse, | ||
| fastifyTypeorm.FastifyTypeormOptions | ||
| >; | ||
| export = fastifyTypeorm; |
+1
-1
| { | ||
| "name": "fastify-typeorm-plugin", | ||
| "version": "2.0.0", | ||
| "version": "2.1.0", | ||
| "description": "Fastify plugin for typeorm", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
7270
13.45%8
14.29%124
34.78%1
Infinity%