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(typescript): adds TypeScript types to ChatButto & Skeleton #17297

Closed

Conversation

2nikhiltom
Copy link
Contributor

Closes #17291

Adds TypeScript types to ChatButto , ChatButto.Skeleton
convers index.js to index.ts

Changelog

New

Added interface ChatButtonProps

Changed

converted : ChatButton.js ---> ChatButton.tsx
converted : ChatButton.Skeleton.js ---> ChatButton.Skeleton.tsx
converted : index.js ---> index.ts

Testing / Reviewing

Make sure no typescript errors are flagged
Make your existing functionality of component are intact

@2nikhiltom 2nikhiltom requested a review from a team as a code owner August 29, 2024 09:49
Copy link

netlify bot commented Aug 29, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit caf531f
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66d0441088a21b00089c7e35
😎 Deploy Preview https://deploy-preview-17297--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 Aug 29, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit caf531f
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66d0441036d2a2000878c5f8
😎 Deploy Preview https://deploy-preview-17297--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.

Copy link
Member

@kennylam kennylam left a comment

Choose a reason for hiding this comment

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

@2nikhiltom Since the files were moved (renamed), all the history is lost. The way around this is to commit the move (foo.js > foo.ts), then make the Typescript changes in another commit.

@2nikhiltom
Copy link
Contributor Author

2nikhiltom commented Sep 3, 2024

@kennylam ! Awesome , that's really good workaround to capture history
I have updated the changes in a new PR #17316 that tracks changes . hence closing this one

@2nikhiltom 2nikhiltom closed this Sep 3, 2024
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.

Add TypeScript types to ChatButton
2 participants