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

feat: make AdditionalProps argument in IconOptions type optional #7149

Conversation

alperari
Copy link
Contributor

@alperari alperari commented Sep 10, 2024

Feature Requests

Description

When switching from PrimeReact v9.6.3 to v10.8.2, i had to do some migrations due to the feature introduced by #4642.

Also, i noticed the inconsistency among the code in utils.d.ts, i.e. AdditionalProps argument is defined to be optional in some places. Yet, I believe, IconOptions was missed out.

This PR makes the AdditionalProps argument for the type IconOptions optional, so that you don't get the following TypeScript error:
screenshot

P.S. This relates to a closed issue #4639 and I'm not sure whether to create new one.

Copy link

vercel bot commented Sep 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
primereact ⬜️ Ignored (Inspect) Visit Preview Sep 10, 2024 5:24am
primereact-v9 ⬜️ Ignored (Inspect) Visit Preview Sep 10, 2024 5:24am

Copy link

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

1 similar comment
Copy link

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

@melloware melloware added the Typescript Issue or pull request is *only* related to TypeScript definition label Sep 10, 2024
@melloware melloware added this to the 10.8.3 milestone Sep 10, 2024
@melloware
Copy link
Member

Thanks!

@melloware melloware merged commit 849ae9f into primefaces:master Sep 10, 2024
5 of 7 checks passed
@alperari alperari deleted the feat/icon-options-make-additional-props-optional branch September 10, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typescript Issue or pull request is *only* related to TypeScript definition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants