fix(compiler-cli): correct type of makeDiagnostic()

This commit corrects the type of makeDiagnostic()'s messageText parameter,
which was not compatible with some compiler refactorings merged to 10.0.x
due to unforeseen dependencies on prior refactorings.
This commit is contained in:
Alex Rickabaugh 2020-07-29 18:00:40 -07:00
parent 78eb5f6777
commit 4a6abbdfc6

View File

@ -24,7 +24,7 @@ export class FatalDiagnosticError {
}
export function makeDiagnostic(
code: ErrorCode, node: ts.Node, messageText: string,
code: ErrorCode, node: ts.Node, messageText: string|ts.DiagnosticMessageChain,
relatedInformation?: ts.DiagnosticRelatedInformation[]): ts.DiagnosticWithLocation {
node = ts.getOriginalNode(node);
return {