Commit 06fe1ed53721862b56c61ebb89b1daee2bc10710 introduced a regression in the number of types created when compiling a snippet of @types\d3. Specifically, it appears to be elaborating types for an error message that ends up getting dropped.
Note that 06fe1ed53721862b56c61ebb89b1daee2bc10710 can be rolled back without losing (all of) the functionality it provides because it was a revision of another commit in the same PR.
Commit 06fe1ed53721862b56c61ebb89b1daee2bc10710 introduced a regression in the number of types created when compiling a snippet of
@types\d3
. Specifically, it appears to be elaborating types for an error message that ends up getting dropped.Repro:
test.ts
For an apples-to-apples comparison, use
nolib
and specify the 3.1 lib.es5.d.ts and lib.dom.d.ts for both compilations.In round numbers, there are ~150 types without the change and ~2500 types with the change.