-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Add TypeScript type annotations for improved type safety #4511
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for react-native ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
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:
- https://github.com/facebook/docusaurus/blob/75e5a00a66aae4f0e9dfbca9a4c85977028a37b8/packages/docusaurus-theme-classic/src/theme/EditMetaRow/index.tsx
- https://github.com/facebook/docusaurus/blob/75e5a00a66aae4f0e9dfbca9a4c85977028a37b8/packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/index.tsx#L51
Introduce TypeScript type annotations across various components to enhance type safety and improve type inference for better developer experience.