Skip to content

Commit

Permalink
fix: diagnostics type
Browse files Browse the repository at this point in the history
  • Loading branch information
skarab42 committed Jul 13, 2022
1 parent efab1f1 commit c15e989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typescript/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { CompilerSettings, Compiler } from './types';
export function createCompiler({ fileName, config }: CompilerSettings): Compiler {
const compilerOptions = { ...ts.getDefaultCompilerOptions(), ...config.options };
const program = ts.createProgram([fileName], compilerOptions);
const diagnostics = ts.getPreEmitDiagnostics(program);
const diagnostics = ts.getPreEmitDiagnostics(program) as ts.Diagnostic[];
const sourceFile = program.getSourceFile(fileName);
const typeChecker = program.getTypeChecker();

Expand Down

0 comments on commit c15e989

Please sign in to comment.