Skip to content

Commit f95809d

Browse files
committed
more types
1 parent 24f5e62 commit f95809d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-schema-compiler/src/compiler/DataSchemaCompiler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export class DataSchemaCompiler {
238238
let cubeNames: string[] = [];
239239
let cubeSymbols: Record<string, Record<string, boolean>> = {};
240240
let transpilerNames: string[] = [];
241-
let results;
241+
let results: (FileContent | undefined)[];
242242

243243
if (transpilationNative || transpilationWorkerThreads) {
244244
cubeNames = Object.keys(this.cubeDictionary.byId);
@@ -301,7 +301,7 @@ export class DataSchemaCompiler {
301301
results = await Promise.all(toCompile.map(f => this.transpileFile(f, errorsReport, {})));
302302
}
303303

304-
return results.filter(f => !!f);
304+
return results.filter(f => !!f) as FileContent[];
305305
};
306306

307307
let cubes: CubeDefinition[] = [];

0 commit comments

Comments
 (0)