-
Notifications
You must be signed in to change notification settings - Fork 28
Refactor : enhanced readability of the code #349
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
base: master
Are you sure you want to change the base?
Conversation
guptamukund22
commented
Apr 3, 2025
- Refactored "OauthWeblnProvider.ts" by implementing "execute" method for better readability and modularity.
#344 moves some code around. once that one is merged maybe you can update this one again and we'll review it. thanks |
Hi @guptamukund22 could you please make sure to branch off master before making each change, so you don't have changes from the previous PR in this one too. Sorry for the conflicts - we just merged the big change Bumi mentioned above. |
@guptamukund22 can you please try to resolve the conflicts and then i can review it again thanks! |
request_options?: Partial<RequestOptions>, | ||
): Promise<GetAccountBalanceResponse> { | ||
// HTTP handlers | ||
private httpGet<T>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of having httpGet httpPost httpDelete methods. can we have generic http Request method here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, Actually I have my end semester exams going on that's why I was not able to reply. I will fix the issue asap.
accountInformation( | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
params: {}, | ||
request_options?: Partial<RequestOptions>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why params and request_options from all the methods were removed. this will break things for package users. we should refactor but not change current working of library