-
Notifications
You must be signed in to change notification settings - Fork 87
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: rename type to AnalyticStatsDto #1393
Conversation
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.
lgtm
@@ -1,4 +1,4 @@ | |||
export type AnalyticStats = { | |||
export type AnalyticStatsDto = { |
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.
should DTOs live in a shared folder like shared/typings
? No big deal for now, probably can do a cleanup in the future
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.
yeah, i think they can live in e.g. shared/types/analytics/dto
. this will be a big reorganisation, so I'm not keen to do it now and break everyone's imports.
It just occurred to me that
AnalyticStats
was in fact a data transfer object that presents a specific data format to the client, so I renamed it. I'm leaving the file in/types/analytics
instead of/shared
so that the cleanup can happen all in one go in a future PR.