Add codes and categories to related information, officially by weswigham · Pull Request #25304 · microsoft/TypeScript (original) (raw)

Fixes #25298

Codes per request for identification, categories to future proof allowing varrying verbosity in elaborations. (So we can choose to mark things as Elaboration vs Explanation vs Warning if we decide that's useful)

It's a small change because we were already reusing our diagnostic mechanisms to generate related information objects. 😉