Comments (7)
Type declarations are not handled in this project, but in the DefinitelyTyped repository; https://github.com/DefinitelyTyped/DefinitelyTyped
from validator.js.
Not sure what OP means but I have issues with Remix. Just a regular import:
import isEmail from 'validator/lib/isEmail'
import isEmail from 'validator/es/lib/isEmail'
Results in:
Cannot find module 'validator/lib/isEmail' or its corresponding type declarations.
But the files clearly are there, I can cmd+click
it and see the export.
In my tsconfig.json
I've got:
{
"compilerOptions": {
"module": "NodeNext",
"moduleResolution": "NodeNext",
"target": "ES2022",
}
}
I can import with the file extension: import isEmail from 'validator/es/lib/isEmail.js'
, but then when I use it TS whines about it:
This expression is not callable.
Type 'typeof import("/Users/bob/foo/node_modules/.pnpm/@[email protected]/node_modules/@types/validator/es/lib/isEmail")' has no call signatures.
from validator.js.
Hey @arman94 Can you describe this issue?
from validator.js.
Seems like you're trying to export toString
which doesn't exist. Donβt know if it's related.
from validator.js.
This is the exact issue I have with validator in Remix
from validator.js.
Having the same issue here. I have @types/validator
added but it's not helping.
from validator.js.
I'm closing this issue since this is not something we can fix in this repo. Issues with @types/validator
can be reported in the DefinitelyTyped repository; DefinitelyTyped/DefinitelyTyped
from validator.js.
Related Issues (20)
- isLocale doesn't work anymore (returns true on wrong locals) HOT 4
- Add support uuid v7 for `isUUID` HOT 3
- isURL() returns false for long urls HOT 6
- The isDate function returns false for some timezones (e.g. North American time zones) HOT 2
- fix: Date is not validated as expected HOT 3
- Email validator accepts special character "ΒΈ" which should not be valid HOT 7
- Enhance assertion check for function "equals" HOT 2
- readme.md toBoolean function documentation typo HOT 4
- No Active Maintainers? New Maintainers Needed? How to Proceed? HOT 10
- `isISO8601` doesn't support duration HOT 3
- isEmail accepts &@<domain> HOT 3
- Inconsistent isSlug results with "." in the inputs HOT 2
- "Cannot find module" error for lib or es/lib modules HOT 1
- isDate returns false for all strings HOT 8
- extended ascii passed isEmail validation HOT 1
- isEmail does not reject emails when blacklisted_chars includes quote
- get list of supported countries for passports HOT 1
- Invalid URL get validated
- "Cannot find module './util/assertString'" since 13.12.0 HOT 1
- π§: Stale Prs HOT 3
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 validator.js.