UNPKG

732 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/// <amd-module name="@angular/compiler-cli/src/diagnostics/translate_diagnostics" />
9import { ParseSourceSpan } from '@angular/compiler';
10import * as ts from 'typescript';
11import { Diagnostic } from '../transformers/api';
12export interface TypeCheckHost {
13 parseSourceSpanOf(fileName: string, line: number, character: number): ParseSourceSpan | null;
14}
15export declare function translateDiagnostics(host: TypeCheckHost, untranslatedDiagnostics: ReadonlyArray<ts.Diagnostic>): {
16 ts: ts.Diagnostic[];
17 ng: Diagnostic[];
18};