diff --git a/packages/platform-fastify/interfaces/nest-fastify-application.interface.ts b/packages/platform-fastify/interfaces/nest-fastify-application.interface.ts index 4ce780d0a28..97fd813a2e1 100644 --- a/packages/platform-fastify/interfaces/nest-fastify-application.interface.ts +++ b/packages/platform-fastify/interfaces/nest-fastify-application.interface.ts @@ -1,4 +1,4 @@ -import { INestApplication, HttpServer } from '@nestjs/common'; +import { HttpServer, INestApplication } from '@nestjs/common'; import { FastifyBodyParser, FastifyInstance, @@ -7,14 +7,14 @@ import { FastifyPluginCallback, FastifyPluginOptions, FastifyRegisterOptions, - FastifyRequest, FastifyReply, + FastifyRequest, RawServerBase, RawServerDefault, } from 'fastify'; import { - Chain as LightMyRequestChain, InjectOptions, + Chain as LightMyRequestChain, Response as LightMyRequestResponse, } from 'light-my-request'; import { FastifyStaticOptions, FastifyViewOptions } from './external'; @@ -98,33 +98,19 @@ export interface NestFastifyApplication< opts: FastifyListenOptions, callback?: (err: Error | null, address: string) => void, ): Promise; - listen( - opts?: FastifyListenOptions, - ): Promise; + listen(opts?: FastifyListenOptions): Promise; listen( callback?: (err: Error | null, address: string) => void, ): Promise; - /** - * @deprecated Variadic listen method is deprecated. Please use `.listen(optionsObject, callback)` instead. The variadic signature will be removed in `fastify@5` - * @see https://github.com/fastify/fastify/pull/3712 - */ listen( port: number | string, callback?: (err: Error | null, address: string) => void, ): Promise; - /** - * @deprecated Variadic listen method is deprecated. Please use `.listen(optionsObject, callback)` instead. The variadic signature will be removed in `fastify@5` - * @see https://github.com/fastify/fastify/pull/3712 - */ listen( port: number | string, address: string, callback?: (err: Error | null, address: string) => void, ): Promise; - /** - * @deprecated Variadic listen method is deprecated. Please use `.listen(optionsObject, callback)` instead. The variadic signature will be removed in `fastify@5` - * @see https://github.com/fastify/fastify/pull/3712 - */ listen( port: number | string, address: string,