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

fix(types): Work around to fix issue with consumers recieving a type error. #174

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

dlabaj
Copy link
Contributor

@dlabaj dlabaj commented Apr 16, 2024

What

Closes #165

Description

Fixes issue where consumers are receiving a type error when using an older version for react-types.

@jschuler
Copy link

LGTM, not necessary, but to take it a step further you could also change as @wise-king-sullyman pointed out in slack:

Looks like there’s a few other places where it’s importing from that barrel file as well (BaseGraph.ts, TaskEdge.tsx, TaskNode.tsx, WhenDecorator.tsx)

Copy link
Collaborator

@jenny-s51 jenny-s51 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

We'll have to look into why the PR preview is erroring out... Opened an issue to track it here

@@ -3,7 +3,7 @@ import Point from './geom/Point';
import Dimensions from './geom/Dimensions';
import Rect from './geom/Rect';
import { Padding, Translatable } from './geom/types';
import { LayoutOptions } from './layouts';
import { LayoutOptions } from './layouts/LayoutOptions';
Copy link
Member

Choose a reason for hiding this comment

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

Yes, types should never include a full directory only the direct dependents.

@jeff-phillips-18 jeff-phillips-18 merged commit a159379 into patternfly:main Apr 17, 2024
7 of 8 checks passed
Copy link

🎉 This PR is included in version 5.3.0-prerelease.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error with 5.3.0-prerelease.5 running Patternfly release candidate 5.3
4 participants