-
-
Notifications
You must be signed in to change notification settings - Fork 655
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
Export multiple arguments of an error as an object to reduce import statements. #1038
Comments
@noman2002 @palisadoes Please take a look at this issue. |
In case it's fine, can I work on this issue? |
Let's wait for others view on this. After that, we can create child issues for it, and work upon them. |
@xoldyckk What's your view on this? |
@anshgoyalevil It's a good idea. |
This issue did not get any activity in the past 14 days and will be closed in 365 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
@palisadoes |
Can I work on this? |
@KrutikaBhatt assigned you |
Is your feature request related to a problem? Please describe.
This issue is related to the refactoring of code, where the multiple arguments of an error are being exported as separate constants. For example:
this can be converted to an object like
which can further be imported in the codebase as an object, and can replace the error constants such as
with
Approach to be followed (optional)
The following approach can be followed:
Additional context
This will reduce the complexity of codebase import statements, since there are a lot of import statements inside a code file, for the constant, which can be grouped together.
The text was updated successfully, but these errors were encountered: