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(statistics) to typescript #1077

Merged
merged 10 commits into from
May 30, 2024

Conversation

meziyum
Copy link
Contributor

@meziyum meziyum commented Mar 18, 2024

Problem

The bookbrainz project has been gradually adopting typescript. Typescript can help us prevent the code base more type safe and boost collaboration

Solution

Refactored the statistics and any related functions to typescript.
Added the type _EditorType which can easily be imported in the ts files wherever necessary

Areas of Impact

statistics page

Copy link
Contributor

@MonkeyDo MonkeyDo left a comment

Choose a reason for hiding this comment

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

Thanks, looks good!
Just a naming suggestion below

src/types.ts Outdated Show resolved Hide resolved
src/client/components/pages/statistics.tsx Outdated Show resolved Hide resolved
@meziyum meziyum requested a review from MonkeyDo May 27, 2024 21:20
@MonkeyDo
Copy link
Contributor

Thank you!

src/types.ts Outdated Show resolved Hide resolved
@MonkeyDo MonkeyDo merged commit 091006f into metabrainz:master May 30, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants