-
Notifications
You must be signed in to change notification settings - Fork 596
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(screen-orientation): Add OrientationLockType #1914
Conversation
…al of OrientationLockType
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.
just a minor comment about the noe
I prefer this approach over #1929 as that seems very complex and harder to maintain.
I tested this approach and didn't seem to generate conflicts in apps using typescript < 5.2.
I released a dev build of screen-orientation with dev version: 6.0.0-dev-1915-20231122T130858.0 with this change
For anyone depending on this in Capacitor 5.x, a solution to this is to add a definitions.d.ts file in your src directory, and add: |
Co-authored-by: Dan Giralté <[email protected]> Co-authored-by: jcesarmobile <[email protected]>
Typescript > v5.2 removes
OrientationLockType
. This adds the type back in.See (microsoft/TypeScript-DOM-lib-generator#1615).
Fixes WN-1457.