TypeScript compile errors are recognized by Code Review Assistant and displayed in pull requests.
Use the TypeScript options to configure what is considered an error.

{
  "compilerOptions": {                       
    "target": "es2016",     
    "module": "commonjs",     
    "strict": true,           /* Enable all strict type-checking options. */
    "noImplicitAny": true,    /* Enable error reporting for expressions and declarations with an implied `any` type.. */
    "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
    ...
  }
}
JSON

And then compile your TypeScript as part of your build pipeline.