-
-
Notifications
You must be signed in to change notification settings - Fork 946
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
Clearer documentation for fakerBASE #2023
Comments
Not exposing fakerBASE is not an option from my side So if no other maintainer is of another opinion, we need to got the alternative route |
Could you explain why it is not an option, please? That adds more weight to your argument.
IMO only by the same amount as custom locales would. E.g. use the
IMO fakerBASE adds a lightweight thing to import if you don't need localized data.
IMO we should generate jsdocs for all our pre-built faker istances and probably the locales. |
I think some of the confusion is that on the surface, fakerBASE only appears to contain quite obscure data like |
I'm sorry, I was more or less a bit stressed. So here are some reasons:
|
Changed the title to reflect improving the documentation better instead. One thing I've been thinking is that it's hard looking at the docs to tell which methods are reliant on the localizable definitions (like |
Team Decision
|
Clear and concise description of the problem
I don't see the value in exposing
fakerBASE
(or having thebase
key in allFakers) implemented in #1748 .import {base} from "@faker-js/faker"
is sufficient if you want to create a Faker instance based onbase
. fakerBASE by itself is not very useful, might cause confusion for new users, and will need special cases for things like #1984Suggested solution
Don't expose fakerBASE
Alternative
Clearer documentation
Additional context
No response
The text was updated successfully, but these errors were encountered: