An attempt to improve Developer Experience on NestJS apps by hijacking built-in types to @nestjs/*
packages.
npm install nestjs-types
Somewhere in your app, like at src/main.ts
import 'nestjs-types'
// ...
then you can use the recommended set of types, like so:
@nestjs/platform-express
/@nestjs/platform-fastify
import { RequestExpress, ResponseExpress } from '@nestjs/platform-express'
// ^ an alias to Express.Request
// instead of importing `Request` from 'express'
import { RequestFastify, ResponseFastify } from '@nestjs/platform-fastify'
motivation: nestjs/nest#11956