-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Update DOM from TSJS-lib-generator #32335
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
Conversation
1. Update Navigator and other small updates. 2. Make ProgressEvent generic. 3. Make `window: Window & typeof globalThis`. 4. Add types: * CSS Overflow * CSS Masking * Web Authentication * WebGL 2 The big change is that `window` now includes globals in its type via `typeof globalThis`. This helps some codebases a lot, such as chrome-devtools-frontend.
@typescript-bot user test this |
@typescript-bot test this |
@typescript-bot run dt |
The user suite test run you requested has finished and failed. I've opened a PR with the baseline diff from master. |
User tests look good; no surprises there. Chrome-devtools-frontend especially benefits. |
From RWC:
window.navigate
~~~~~~~~
'navigate' not found on 'Window & typeof globalThis'. Did you mean 'navigator'? But it no longer has a related span "navigator is declared here", because navigator now has two declarations.
I don't think any of these breaks are bad. |
DT looks fine, just a couple of |
/** | ||
* Specifies the beginning and end of the document body. | ||
/** | ||
* Specifies the beginning and end of the document body. |
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.
👆 what is all this, LF/CRLF variation?
Looks set to create trouble down the line.
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.
Looks like comments.json (1) still has explicit \r\n
and (2) something changed recently to stop converting them to \n
.
The right fix is to explicitly change comments.json to use \n
.
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.
Good idea!
People may have weird git configs, check in and then CRLF noise could obscure real changes for PR reviews.
window: Window & typeof globalThis
.The big change is that
window
now includes globals in its type viatypeof globalThis
. This helps some codebases a lot, such as chrome-devtools-frontend.