Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

fastify-typeorm-plugin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-typeorm-plugin - npm Package Compare versions

Comparing version
2.0.0
to
2.1.0
+37
index.d.ts
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",