mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Use CompilerInfo[] in a couple places that were previously any or never (#6029)
Depends on #6028
This commit is contained in:
5
app.ts
5
app.ts
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user