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(icons-react): use declare keyword in bucket TypeScript types #15094

Merged

Conversation

lewandom
Copy link
Contributor

@lewandom lewandom commented Nov 2, 2023

An attempt to fix TypeScript compilation problem reported in carbon-design-system/carbon-website#3787 (comment).

Changelog

Changed

  • Use declare keyword in icons-react TypeScript definition files for icon buckets.

Testing / Reviewing

The TypeScript typed code using icons-react should compile without issues.

@lewandom lewandom requested a review from a team as a code owner November 2, 2023 19:30
@lewandom
Copy link
Contributor Author

lewandom commented Nov 2, 2023

@andreancardona this should fix the problem you spotted. I'm not 100% sure it's the right or complete solution though, since I weren't able to reproduce this problem in my TS projects.

Copy link

netlify bot commented Nov 2, 2023

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 8e4b647
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6543f8da6a504100082f4535
😎 Deploy Preview https://deploy-preview-15094--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 2, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 8e4b647
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6543f8daf2cac1000828fe76
😎 Deploy Preview https://deploy-preview-15094--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@lewandom
Copy link
Contributor Author

lewandom commented Nov 2, 2023

@alisonjoseph meant to tag you, sorry.

@tay1orjones tay1orjones added this pull request to the merge queue Nov 3, 2023
Merged via the queue into carbon-design-system:main with commit 0889f3c Nov 3, 2023
16 checks passed
@lewandom lewandom deleted the ts-icons-buckets-fix-declare branch November 6, 2023 11:24
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.

3 participants