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: api types #200

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

refactor: api types #200

wants to merge 5 commits into from

Conversation

PetrBulanek
Copy link
Contributor

No description provided.

@PetrBulanek PetrBulanek requested a review from kapetr February 3, 2025 16:24
@PetrBulanek PetrBulanek requested a review from a team as a code owner February 3, 2025 16:24
project: Project;
project: ProjectResponse;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure this type of refactor is necessary, I personally wouldn't do it - project is entity (it is also found in the list, not just project detail response) in this context, so I'd keep the current naming. I understand the entity = response object in this case, but I'd just do this, if we want to explicitly export the detail response type:
export type Project = ProjectResponse;

But it's open for debate :)

Copy link
Contributor Author

@PetrBulanek PetrBulanek Feb 5, 2025

Choose a reason for hiding this comment

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

I totally agree. Will make use of the export type Project = ProjectResponse;.

@PetrBulanek PetrBulanek requested a review from kapetr February 5, 2025 08:47
# Conflicts:
#	src/app/(main)/[projectId]/apps/builder/t/[threadId]/page.tsx
#	src/modules/chat/message/RunSetupDelta.tsx
#	src/modules/chat/types.ts
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.

2 participants