Skip to content

Explicitly annotate return type of getCommentRange #47860

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
merged 1 commit into from
Feb 14, 2022

Conversation

weswigham
Copy link
Member

Fixes the nightly publish. Post-LKG, Node | TextRange no longer subtype reduces due to a change involving total ordering of readonly properties in subtyping (node's fields are readonly, TextRange's are not), which, in turn, causes an API diff. This remedies that by annotating the old type explicitly.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Feb 12, 2022
@weswigham weswigham merged commit 7e57c81 into microsoft:main Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants