Skip to content

Commit 1b62fd9

Browse files
committed
Cast getCompilerOptions calls to custom compiler options
1 parent 4045b47 commit 1b62fd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Transpile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function transpile({
6161
printer,
6262
transformer,
6363
}: TranspileOptions): TranspileResult {
64-
const options = program.getCompilerOptions();
64+
const options = program.getCompilerOptions() as CompilerOptions;
6565
printer = printer || new LuaPrinter(options);
6666
transformer = transformer || new LuaTransformer(program, options);
6767

src/tstl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function updateWatchCompilationHost(
211211

212212
host.afterProgramCreate = builderProgram => {
213213
const program = builderProgram.getProgram();
214-
const options = builderProgram.getCompilerOptions();
214+
const options = builderProgram.getCompilerOptions() as tstl.CompilerOptions;
215215

216216
let configFileParsingDiagnostics: ts.Diagnostic[] = [];
217217
const configFile = options.configFile as ts.TsConfigSourceFile | undefined;

0 commit comments

Comments
 (0)