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

Change enum declaration in index.d.ts to UnionType #1800

Merged
merged 2 commits into from
Jul 22, 2022

Conversation

tainakanchu
Copy link
Contributor

Summary

Fixes #1210

This PR is in addition to #1559 by @avery-pierce .

As #1559 (comment) commented, it should be better to remove all enum from index.d.ts, MarkerUnits and Orient.
Because these did not have an already defined UnionType like MaskUnit, we created a new one.

Test Plan

This PR doesn't affect any executable code.
This correspondence only changes index.d.ts and its accompanying index.js.flow.

What's required for testing (prerequisites)?

None

What are the steps to reproduce (after prerequisites)?

None

Compatibility

Only changes the Typescript declaration

Checklist

  • I have tested this on a device and a simulator
  • I added documentation in README.md
  • I updated the typed files (typescript)
  • I added a test for the API in the __tests__ folder

Note
This is my first pull request for OSS project. If you see something not good, please feel free advice me :)

Copy link
Member

@WoLewicki WoLewicki left a comment

Choose a reason for hiding this comment

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

LGTM 🎉 Thanks for your contribution!

@WoLewicki WoLewicki merged commit a7a31ca into software-mansion:main Jul 22, 2022
@tainakanchu tainakanchu deleted the remove-enum branch July 25, 2022 03:36
WoLewicki pushed a commit that referenced this pull request Aug 9, 2022
After #1800 merged, the refactoring 286c02f was performed and enum declaration was back to previous one.
So type error mentioned at #1210 for maskUnits should occurred again.
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.

TypeError: Cannot read property 'USER_SPACE_ON_USE' of undefined
2 participants