You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the ApiResponse type is hardcoded inside app/page.tsx. This makes it difficult to reuse in other components or API routes. We need to move this definition to a centralized file in the types folder.
📍 Source Location
app/page.tsx
🎯 Target Location
types/api-response.ts
🛠 Tasks
Create the file in the types/ directory.
Move the following code block to that file and add the export keyword:
📝 Description
Currently, the
ApiResponsetype is hardcoded insideapp/page.tsx. This makes it difficult to reuse in other components or API routes. We need to move this definition to a centralized file in thetypesfolder.📍 Source Location
app/page.tsx🎯 Target Location
types/api-response.ts🛠 Tasks
types/directory.exportkeyword:ApiResponseback intoapp/page.tsx.Tip
🚀 Want to contribute?
Comment
assign meto be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨