diff --git a/packages/platform-express/adapters/express-adapter.ts b/packages/platform-express/adapters/express-adapter.ts index d9b7bff0da0..fef3c1dc7a0 100644 --- a/packages/platform-express/adapters/express-adapter.ts +++ b/packages/platform-express/adapters/express-adapter.ts @@ -1,4 +1,4 @@ -import type { Server } from 'net'; +import type { Server } from 'http'; import { HttpStatus, InternalServerErrorException, diff --git a/packages/platform-express/interfaces/nest-express-application.interface.ts b/packages/platform-express/interfaces/nest-express-application.interface.ts index f913ab973be..d096c7b166b 100644 --- a/packages/platform-express/interfaces/nest-express-application.interface.ts +++ b/packages/platform-express/interfaces/nest-express-application.interface.ts @@ -1,4 +1,4 @@ -import { Server } from 'net'; +import { Server } from 'http'; import { INestApplication } from '@nestjs/common'; import * as bodyparser from 'body-parser'; import { NestExpressBodyParserOptions } from './nest-express-body-parser-options.interface';