Skip to content

refactor: move ApiResponse type to a dedicated file#142

Merged
O2sa merged 1 commit intoO2sa:mainfrom
TiagoAndreAlmeida:refactor/api-response-type
Apr 30, 2026
Merged

refactor: move ApiResponse type to a dedicated file#142
O2sa merged 1 commit intoO2sa:mainfrom
TiagoAndreAlmeida:refactor/api-response-type

Conversation

@TiagoAndreAlmeida
Copy link
Copy Markdown
Contributor

Description of Changes

The ApiResponse type was previously defined locally within app/page.tsx. This refactor moves the type
definition to types/api-response.ts, enabling it to be shared across the frontend and API routes. This
change improves modularity and prevents code duplication, adhering to the project's coding standards.

Fixes #137

Additionally, at the time of submission of this PR:

  • The referred issue is not blocked currently
  • All unittests passed after changes were made

@github-actions
Copy link
Copy Markdown

Thank you for the pull request! ✅

A maintainer will review this soon. Please be patient while we take a look. 🙌

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

@TiagoAndreAlmeida is attempting to deploy a commit to the osama's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dev-impact Ready Ready Preview, Comment Apr 30, 2026 5:08pm

@O2sa O2sa merged commit 6110cc5 into O2sa:main Apr 30, 2026
3 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

Congratulations @TiagoAndreAlmeida 🎊 Your first contribution has been merged! 🚀

Thank you for helping improve the project. If you find this tool useful, please consider giving us a ⭐ star on GitHub—it helps more developers find our work!

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.

Move ApiResponse type to global types directory

2 participants