microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
98.46k stars 12.23k forks source link

Declaration emit should avoid issuing errors on unresolved names #58536

Closed weswigham closed 2 weeks ago

weswigham commented 2 weeks ago

These already will get errors in the checker when the file is typechecked, so the declaration emitter doesn't need to double up and also error on them.

This basically allows the declaration emitter to copy inputs with unresolvable names into the output without the output being blocked by a declaration-emitter issued error.

Fixes #58496 Fixes #58535