UNPKG

680 BTypeScriptView Raw
1import * as ts from 'typescript';
2interface SemanticOrSyntacticError extends ts.Diagnostic {
3 message: string;
4}
5/**
6 * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether
7 * they are related to generic ECMAScript standards, or TypeScript-specific constructs.
8 *
9 * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when
10 * the user opts in to throwing errors on semantic issues.
11 */
12export declare function getFirstSemanticOrSyntacticError(program: ts.Program, ast: ts.SourceFile): SemanticOrSyntacticError | undefined;
13export {};
14//# sourceMappingURL=semantic-or-syntactic-errors.d.ts.map
\No newline at end of file