We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
N/A
https://www.typescriptlang.org/play?#code/O4SwdgJg9sB0DOBjATgU1WWVkgwFwEM8QpMAbKRAawAoAiAB2z2QJDwFoGcBbA5AJ50AlAG4gA
window.screen.orientation.lock("portrait-primary");
Property 'lock' does not exist on type 'ScreenOrientation'. ts(2339)
Which is wrong because it does exist per MDN (and was also working before the version update): https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/lock
Compiler doesn't complain.
Interestingly enough, unlock is still present on ScreenOrientation and doesn't produce this error.
unlock
ScreenOrientation
The text was updated successfully, but these errors were encountered:
Duplicate of microsoft/TypeScript-DOM-lib-generator#1615.
Sorry, something went wrong.
This issue has been marked as "Duplicate" and has seen no recent activity. It has been automatically closed for house-keeping purposes.
No branches or pull requests
π Search Terms
N/A
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?#code/O4SwdgJg9sB0DOBjATgU1WWVkgwFwEM8QpMAbKRAawAoAiAB2z2QJDwFoGcBbA5AJ50AlAG4gA
π» Code
π Actual behavior
Which is wrong because it does exist per MDN (and was also working before the version update): https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/lock
π Expected behavior
Compiler doesn't complain.
Additional information about the issue
Interestingly enough,
unlock
is still present onScreenOrientation
and doesn't produce this error.The text was updated successfully, but these errors were encountered: