Created
December 1, 2020 14:00
-
-
Save karol-majewski/4c2cf34d9d4fa7a9e40c2fb8d2cfd95d to your computer and use it in GitHub Desktop.
Deprecation marks vs. module augmentation (https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_39.md#deprecation-tags-for-symbols-and-completions)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare global { | |
interface DOMRect extends DOMRectReadOnly { | |
/** | |
* @deprecated Doesn't work on legacy Edge. Use `left` instead. | |
*/ | |
x: number; | |
/** | |
* @deprecated Doesn't work on legacy Edge. Use `right` instead. | |
*/ | |
y: number; | |
/** | |
* @deprecated Grrr | |
*/ | |
z: number; | |
} | |
} | |
const { x, y, z } = document.body.getBoundingClientRect(); | |
export {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment