Use CompilerInfo[] in a couple places that were previously any or never (#6029)

Depends on #6028
This commit is contained in:
Jeremy Rifkin
2024-01-22 21:47:45 -06:00
committed by GitHub
parent aba3070c22
commit c43e69bfdd
4 changed files with 12 additions and 6 deletions

5
app.ts
View File

@@ -68,6 +68,7 @@ import {loadSponsorsFromString} from './lib/sponsors.js';
import {getStorageTypeByKey} from './lib/storage/index.js';
import * as utils from './lib/utils.js';
import {ElementType} from './shared/common-utils.js';
import {CompilerInfo} from './types/compiler.interfaces.js';
import type {Language, LanguageKey} from './types/languages.interfaces.js';
// Used by assert.ts
@@ -525,7 +526,7 @@ async function main() {
if (gitReleaseName) logger.info(` git release ${gitReleaseName}`);
if (releaseBuildNumber) logger.info(` release build ${releaseBuildNumber}`);
let initialCompilers;
let initialCompilers: CompilerInfo[];
let prevCompilers;
if (opts.prediscovered) {
@@ -581,7 +582,7 @@ async function main() {
const noscriptHandler = new NoScriptHandler(router, global.handler_config);
const routeApi = new RouteAPI(router, global.handler_config);
async function onCompilerChange(compilers) {
async function onCompilerChange(compilers: CompilerInfo[]) {
if (JSON.stringify(prevCompilers) === JSON.stringify(compilers)) {
return;
}