Skip to content

Add TypeScript type annotations for improved type safety#4511

Merged
Simek merged 12 commits into
react:mainfrom
clicktodev:better-types
Oct 9, 2025
Merged

Add TypeScript type annotations for improved type safety#4511
Simek merged 12 commits into
react:mainfrom
clicktodev:better-types

Conversation

@clicktodev

Copy link
Copy Markdown
Contributor

Introduce TypeScript type annotations across various components to enhance type safety and improve type inference for better developer experience.

@netlify

netlify Bot commented Feb 16, 2025

Copy link
Copy Markdown

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 72c70dd
🔍 Latest deploy log https://app.netlify.com/sites/react-native/deploys/67d8e87e6d737b0008fd0200
😎 Deploy Preview https://deploy-preview-4511--react-native.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.

@clicktodev clicktodev marked this pull request as ready for review February 16, 2025 15:00

@Simek Simek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Files in theme directory comes from Docusaurus swizzle mechanism and they should not be altered without an explicit functional need, since this complicates the upgrade process.

If you would like to see the improved types in there (since they seem to be present in upstream), you should reswizzle the latest version of components, and apply the React Native website custom changes on top of that, instead of typing things manually:

@clicktodev clicktodev requested a review from Simek February 18, 2025 13:03
@clicktodev

Copy link
Copy Markdown
Contributor Author

cc @Simek

@Simek

Simek commented Oct 8, 2025

Copy link
Copy Markdown
Collaborator

Hey @clicktodev, can you revert changes to the files in theme directory or re-swizzle them instead as mentioned above?

We can also split this up into multiple PRs, and focus in this one on changes to our own code.

@netlify

netlify Bot commented Oct 9, 2025

Copy link
Copy Markdown

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 47277b7
🔍 Latest deploy log https://app.netlify.com/projects/react-native/deploys/68e78f7010cdcb0008598cd0
😎 Deploy Preview https://deploy-preview-4511--react-native.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 project configuration.

@clicktodev

Copy link
Copy Markdown
Contributor Author

alright i'll avoid docusaurus components for now

@clicktodev

Copy link
Copy Markdown
Contributor Author

done

@Simek Simek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the updates! 🚀

Comment thread website/src/components/Home/Section/index.tsx Outdated
@Simek Simek merged commit ad31f80 into react:main Oct 9, 2025
4 checks passed
@clicktodev clicktodev deleted the better-types branch October 9, 2025 10:49
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