Limit duplicate declaration errors · Issue #25324 · microsoft/TypeScript (original) (raw)
Some notes in #25306.
Idea is that you really want to group all the global "duplicate declaration" errors or "cannot re-declare block-scoped variable" errors in a single file, and limit it to at most 5 or so. Typically the extreme case is that you have multiple global files that are identical.