Files
memecoin-botV2/.pnpm-store/v10/files/1d/b20ca6ce2139146826d43a8c5764549aba9be8a8a07f51b847ea556676b9f3ac0f843663135733246c76db52246f7fce95f459d4b9b1311fdbb1d635f152d8

13 lines
642 B
Plaintext

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;