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:
parent
78eb5f6777
commit
4a6abbdfc6
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user