simenandre / nestjs-envalid

Simple wrapper on top of envalid for NestJS
Apache License 2.0
25 stars 1 forks source link

fix: Use the 'types' entry in the package.json #17

Closed louis-vinchon closed 1 year ago

louis-vinchon commented 1 year ago

I had the following issue with v2.1.0: Cannot find module 'nestjs-envalid' or its corresponding type declarations.

I made these changes directly on the module in my node_modules and it solved the issue.

According to the official Typescript documentation, the types field is required to properly 'expose' the types to your package users.

louis-vinchon commented 1 year ago

Thank you for the quick patch release. :)