microsoft / TypeScript

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

Make diagnostics public on EmitOutput #58317

Closed jakebailey closed 2 weeks ago

jakebailey commented 2 weeks ago

This EmitOutput is uses by monaco and the playground, but neither can see emit diags, which is a problem as they need to know that they need to process the diagnostics to remove non-serializable things.

typescript-bot commented 2 weeks ago

Looks like you're introducing a change to the public API surface area. If this includes breaking changes, please document them on our wiki's API Breaking Changes page.

Also, please make sure @DanielRosenwasser and @RyanCavanaugh are aware of the changes, just as a heads up.