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

nestjs-types

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-types

Monkey patching types for a better Developer Experience when working with NestJS official packages.

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

nestjs-types

An attempt to improve Developer Experience on NestJS apps by hijacking built-in types to @nestjs/* packages.

Install

npm install nestjs-types

Usage

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: https://github.com/nestjs/nest/pull/11956

Keywords

nestjs

FAQs

Package last updated on 10 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts