-
-
Notifications
You must be signed in to change notification settings - Fork 934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(usage): type definitions aren't strictly necessary #2840
Conversation
type definitions aren't strictly necessary here
✅ Deploy Preview for fakerjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #2840 +/- ##
========================================
Coverage 99.95% 99.96%
========================================
Files 2973 2973
Lines 212613 212613
Branches 943 601 -342
========================================
+ Hits 212510 212529 +19
+ Misses 103 84 -19 |
They might not be necessary there, but we have them there to reduce the cognitive load from the reader to guess what the method/field is supposed to do/return. See also: What is your idea/intention with removing those (aka Why)? |
|
Improve the example for the Users type definition, or remove it altogether to allow users to explore the usage independently without encountering errors after choosing ESM or CJS. |
So the issue here is that the example on the readme uses a type that isnt specified anywhere on that page. |
Maybe remove "export" too? If it's just a standalone example. |
I'm undecided on that. Maybe a little bit on the keep it part because I hope this pushes the users to reuse their faker methods and it slightly catches more attention. |
type definitions aren't strictly necessary here