Skip to content

If we are updating dts of any of the file and it affects global scope, everything needs update in signature and dts emit #48600

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 4 commits into from
Apr 21, 2022

Conversation

sheetalkamat
Copy link
Member

Fixes #42769

768f7ef is the actual fix.
Rest is just some renames to make it easier to update and are changes better viewed per commit

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Apr 7, 2022
@sheetalkamat
Copy link
Member Author

Ping @andrewbranch @amcasey

@amcasey
Copy link
Member

amcasey commented Apr 20, 2022

So a high-level summary would be that, whereas we used to loop over all keys, we now check whether each has global effects and stop iterating once we find and perform a global update?

@sheetalkamat
Copy link
Member Author

Yes

Copy link
Member

@amcasey amcasey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable.

@sheetalkamat sheetalkamat merged commit 45faac7 into main Apr 21, 2022
@sheetalkamat sheetalkamat deleted the staleErrors branch April 21, 2022 04:05
Jack-Works pushed a commit to Jack-Works/TypeScript that referenced this pull request Apr 22, 2022
…, everything needs update in signature and dts emit (microsoft#48600)

* Add test

* Renames

* More refactoring

* If we are updating dts of any of the file and it affects global scope, everything needs update in signature and dts emit
Fixes microsoft#42769
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stale errors in tsbuildinfo file
3 participants