mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-04 18:29:30 +08:00
13 lines
No EOL
700 B
Text
13 lines
No EOL
700 B
Text
import type { Diagnostic, Program, SourceFile } from 'typescript';
|
|
export interface SemanticOrSyntacticError extends Diagnostic {
|
|
message: string;
|
|
}
|
|
/**
|
|
* By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether
|
|
* they are related to generic ECMAScript standards, or TypeScript-specific constructs.
|
|
*
|
|
* Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when
|
|
* the user opts in to throwing errors on semantic issues.
|
|
*/
|
|
export declare function getFirstSemanticOrSyntacticError(program: Program, ast: SourceFile): SemanticOrSyntacticError | undefined;
|
|
//# sourceMappingURL=semantic-or-syntactic-errors.d.ts.map |