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: TypeScript bloat #3603

Merged

Conversation

DimitarNestorov
Copy link
Contributor

@DimitarNestorov DimitarNestorov commented Jan 18, 2023

Summary

Related to #3595 #3517

The lib/typescript folder is filled with a lot of bloat (as shown in screenshot below). This PR removes all instances of that kind of bloat and adds a script to prevent a regression.
image

For example: the source code doesn't contain any accessibilityLabelledBy but there are 40 occurrences in lib/typescript. This causes an issue in React Native 0.71 where this prop has a type of unknown and is required (the prop is missing from the type definitions in 0.71.0).

Before After
image image
image image

Test plan

Ran yarn test, yarn lint, and yarn typescript with no errors.

@DimitarNestorov DimitarNestorov changed the title Fix TypeScript bloat fix: TypeScript bloat Jan 18, 2023
@lukewalczak lukewalczak marked this pull request as ready for review January 19, 2023 19:50
package.json Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
@callstack-bot
Copy link

Hey @DimitarNestorov, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

Copy link
Member

@lukewalczak lukewalczak left a comment

Choose a reason for hiding this comment

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

Thanks @DimitarNestorov! 🎉

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.

None yet

4 participants