@nestjs/platform-fastify 10.4.6 → 10.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FastifyBodyParser, FastifyInstance, FastifyListenOptions, FastifyPluginAsync, FastifyPluginCallback, FastifyPluginOptions, FastifyRegisterOptions,
|
|
3
|
-
import { Chain as LightMyRequestChain,
|
|
1
|
+
import { HttpServer, INestApplication } from '@nestjs/common';
|
|
2
|
+
import { FastifyBodyParser, FastifyInstance, FastifyListenOptions, FastifyPluginAsync, FastifyPluginCallback, FastifyPluginOptions, FastifyRegisterOptions, FastifyReply, FastifyRequest, RawServerBase, RawServerDefault } from 'fastify';
|
|
3
|
+
import { InjectOptions, Chain as LightMyRequestChain, Response as LightMyRequestResponse } from 'light-my-request';
|
|
4
4
|
import { FastifyStaticOptions, FastifyViewOptions } from './external';
|
|
5
5
|
import { NestFastifyBodyParserOptions } from './nest-fastify-body-parser-options.interface';
|
|
6
6
|
/**
|
|
@@ -65,19 +65,7 @@ export interface NestFastifyApplication<TServer extends RawServerBase = RawServe
|
|
|
65
65
|
listen(opts: FastifyListenOptions, callback?: (err: Error | null, address: string) => void): Promise<TServer>;
|
|
66
66
|
listen(opts?: FastifyListenOptions): Promise<TServer>;
|
|
67
67
|
listen(callback?: (err: Error | null, address: string) => void): Promise<TServer>;
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated Variadic listen method is deprecated. Please use `.listen(optionsObject, callback)` instead. The variadic signature will be removed in `fastify@5`
|
|
70
|
-
* @see https://github.com/fastify/fastify/pull/3712
|
|
71
|
-
*/
|
|
72
68
|
listen(port: number | string, callback?: (err: Error | null, address: string) => void): Promise<TServer>;
|
|
73
|
-
/**
|
|
74
|
-
* @deprecated Variadic listen method is deprecated. Please use `.listen(optionsObject, callback)` instead. The variadic signature will be removed in `fastify@5`
|
|
75
|
-
* @see https://github.com/fastify/fastify/pull/3712
|
|
76
|
-
*/
|
|
77
69
|
listen(port: number | string, address: string, callback?: (err: Error | null, address: string) => void): Promise<TServer>;
|
|
78
|
-
/**
|
|
79
|
-
* @deprecated Variadic listen method is deprecated. Please use `.listen(optionsObject, callback)` instead. The variadic signature will be removed in `fastify@5`
|
|
80
|
-
* @see https://github.com/fastify/fastify/pull/3712
|
|
81
|
-
*/
|
|
82
70
|
listen(port: number | string, address: string, backlog: number, callback?: (err: Error | null, address: string) => void): Promise<TServer>;
|
|
83
71
|
}
|