Skip to content
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

refactor: migrate utils/request to Typescript #98

Merged
merged 1 commit into from
Aug 7, 2020

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Aug 6, 2020

Problem

Migrates utils/request to Typescript

Related to #8

@karrui karrui requested a review from mantariksh August 6, 2020 07:34
Copy link
Contributor

@mantariksh mantariksh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with this but also wondering if there's a better solution, given what @liangyuanruo said a couple of months ago about never passing the req or res objects to other functions

@karrui
Copy link
Contributor Author

karrui commented Aug 6, 2020

I'm ok with this but also wondering if there's a better solution, given what @liangyuanruo said a couple of months ago about never passing the req or res objects to other functions

I think that's in regards to services, utilities like this I think is fine.

Might want to have a central error handler then, then have that central handler inline this function. I think that can be taken a look at in the future after the full migration and cleanup of controllers and routes

@karrui karrui merged commit 04627d5 into develop Aug 7, 2020
@karrui karrui deleted the refactor/ts-utils-request branch August 7, 2020 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants