Matt suggestions

This commit is contained in:
Jeremy
2023-02-10 12:39:32 -05:00
parent 30c260bbed
commit 3ab93a7abd
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ export class ApiHandler {
handleLanguages(req: express.Request, res: express.Response) {
const availableLanguages = this.usedLangIds.map(val => {
const lang = this.languages[val];
const newLangObj: Language & {defaultCompiler?: string} = Object.assign({}, lang);
const newLangObj: Language = Object.assign({}, lang);
if (this.options) {
newLangObj.defaultCompiler = this.options.options.defaultCompiler[unwrap(lang).id];
}
+2
View File
@@ -106,4 +106,6 @@ export interface Language {
monacoDisassembly: string | null;
/** Brief description of the language */
tooltip?: string;
/** Default compiler for the language. This is populated when handed to the frontend. */
defaultCompiler?: string;
}