-
Notifications
You must be signed in to change notification settings - Fork 440
fix(40454): allow IntersectionObserverInit.root to accept type Docume… #909
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
The right way to do this is updating |
@saschanaz thanks for the comment! I tried that approach, but it seems
Is it ok if I add a |
Gread find! Yes, that will fix it. |
3633391
to
dab2303
Compare
@saschanaz updated! |
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.
LGTM 👍
@sandersn poke you for merging this PR ... |
src/helpers.ts
Outdated
@@ -16,7 +16,8 @@ export const baseTypeConversionMap = new Map<string, string>([ | |||
["sequence", "Array"], | |||
["record", "Record"], | |||
["FrozenArray", "ReadonlyArray"], | |||
["EventHandler", "EventHandler"] | |||
["EventHandler", "EventHandler"], | |||
["undefined", "void"] |
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.
BTW, #920 did this in another way so we don't need this anymore. Sorry, but still was a good work!
Could you run |
… from undefined to void
@saschanaz thanks for notifying! I just rebased the PR, removed the change in |
The TypeScript team will review and merge this when the "review time" comes, so please wait until that happens 🙏 |
…nt and update IntersectionObserver.root to be of type Node
Fix microsoft/TypeScript#40454