nestjs-types
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

/nestjs-types/

    Package Sidebar

    Install

    npm i nestjs-types

    Weekly Downloads

    5

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    2.49 kB

    Total Files

    5

    Last publish

    Collaborators

    • micalevisk