-
Notifications
You must be signed in to change notification settings - Fork 439
Update the XML spec #72
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
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d37f4e0
Add emitting typedefs
7df3659
Remove types in the json file that are fixed in spec
zhengbli 396c724
Fix ClipboardEventInit
zhengbli 896cb98
Update baselines
zhengbli 66a1ef9
Change the type of IDBIndex.openCursor IDBIndex.openKeyCursor and IDB…
zhengbli 8990e34
Simplify the type of window.URL
zhengbli f356f1d
Change types of IDB keys
zhengbli ca0acc5
Merge branch 'master' of https://github.com/Microsoft/TSJS-lib-genera…
zhengbli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 about multiple type arguments? What about nested type arguments?
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.
The nested case should be taken care of, as the implementation is recursive. In line 69 the
paramName
is obtained via another run ofDomTypeToTsType
using the matched part, so even if it has a type argument, it will be recognized.As for the case with multiple type arguments, the logic would become much more complex, because it is non-trivial to tell whether ',' delimits two types or is just inside a type argument. Up to now I haven't seen the case appeared yet in the spec, it might be worth another PR to address the issue.