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

Update prefect-design and fix type errors #2844

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Conversation

pleek91
Copy link
Collaborator

@pleek91 pleek91 commented Dec 3, 2024

No description provided.

@pleek91 pleek91 requested a review from a team as a code owner December 3, 2024 17:46
Comment on lines +29 to +32
type WorkspaceEventTimelineItem = TimelineItem & WorkspaceEvent

const props = defineProps<{
events: WorkspaceEvent[],
events: WorkspaceEventTimelineItem[],
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since WorkspaceEvent has no properties in common with TimelineItem it was triggering typescripts week type detection. But since TimelineItem has no require properties we can just use an intersection type.

@pleek91 pleek91 merged commit 562df0c into main Dec 3, 2024
2 checks passed
@pleek91 pleek91 deleted the update-prefect-design branch December 3, 2024 19:06
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