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: resolve CatmullRomLineProps conflict with LineProps 'segments' #2362

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

Martini024
Copy link
Contributor

@Martini024 Martini024 commented Feb 21, 2025

Why

The segments property in CatmullRomLineProps was conflicting with LineProps. Since LineProps already declares segments, redeclaring it in CatmullRomLineProps caused TypeScript errors.

This PR resolves the issue by omitting segments from LineProps in CatmullRomLineProps, allowing users to define segments without type conflicts.

What

  • Added 'segments' to Omit<LineProps, 'ref' | 'segments'> to prevent redeclaration issues.
  • Ensured compatibility with existing props.

Checklist

  • Documentation updated (example)
  • Storybook entry added (example)
  • Fix verified
    • TypeScript errors related to segments no longer appear.
  • Ready to be merged

Additional Comments

  • This PR resolves #1476.

Copy link

vercel bot commented Feb 21, 2025

@Martini024 is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@CodyJasonBennett CodyJasonBennett linked an issue Feb 22, 2025 that may be closed by this pull request
@CodyJasonBennett CodyJasonBennett merged commit 71b1128 into pmndrs:master Feb 23, 2025
3 of 4 checks passed
Copy link

🎉 This PR is included in version 10.0.1 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CatmullRomLine segments prop is not working
2 participants