---
changeKind: internal
packages:
  - "@typespec/compiler"
---

Add a method `join` to DiagnosticCollector to allow merging the collected diagnostics with an input diagnostic result and wrapping the result automatically.