Comments (4)
While installing @types/validator
as a project development dependency will fix the transpilation error messages, @SchroederSteffen, since this is a published package that is consumed by other applications, I'm more in agreement with this StackOverflow answer supporting the previous practice of keeping @types/validator
in dependencies
so that it's available during development without that extra step.
from class-validator.
Updating to @nestjs/class-validator
causes tsc
to generate error TS7016: Could not find a declaration file for module 'validator'.
I believe this shares the same root cause (removing @types/validator
from package.json
dependencies
) as issue #1412 & issue #1535 in the original typestack/class-validator
library from which this repository was forked.
from class-validator.
Thanks for the hint @KeithGillette! So, it's an upstream issue. (typestack@70278ab / typestack#1409).
Though, having a @types/
production dependency wouldn't be right anyways, as it's just required for the build. So, I would assume that it's more correct now. Agreed?
Then it's rather a documentation issue: "You need to npm i -D @types/validator
yourself."
from class-validator.
If someone wants to create a PR to this fork adding the validator
declaration files, go for it! Contributions are more than welcome
from class-validator.
Related Issues (10)
- Dependency Dashboard
- Critical severity vulnerability HOT 1
- Add shim file for browsers
- Action Required: Fix Renovate Configuration
- Validation Array HOT 1
- ESM error with dependency `libphonenumber-js` HOT 1
- Easy way to compose ORed validators HOT 2
- Validate dynamic key in the DTO HOT 1
- fix: medium vulnerability reported by snyk HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from class-validator.