From 5c9b0dfaf9ae62e506bfc08350844af70e208bb9 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 24 Feb 2022 16:09:17 +0530 Subject: [PATCH] types --- libs/remix-solidity/src/compiler/compiler.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/remix-solidity/src/compiler/compiler.ts b/libs/remix-solidity/src/compiler/compiler.ts index ab2510b950..428ff5a765 100644 --- a/libs/remix-solidity/src/compiler/compiler.ts +++ b/libs/remix-solidity/src/compiler/compiler.ts @@ -9,7 +9,8 @@ import { Source, SourceWithTarget, MessageFromWorker, CompilerState, CompilationResult, visitContractsCallbackParam, visitContractsCallbackInterface, CompilationError, gatherImportsCallbackInterface, - isFunctionDescription + isFunctionDescription, + CompilerInput } from './types' /* @@ -134,7 +135,7 @@ export class Compiler { * @param source Source */ - onCompilationFinished (data: CompilationResult, missingInputs?: string[], source?: SourceWithTarget, input?, version?): void { + onCompilationFinished (data: CompilationResult, missingInputs?: string[], source?: SourceWithTarget, input?: string, version?: string): void { let noFatalErrors = true // ie warnings are ok const checkIfFatalError = (error: CompilationError) => { @@ -183,7 +184,7 @@ export class Compiler { return { error: 'Deferred import' } } let result: CompilationResult = {} - let input + let input: string try { if (source && source.sources) { const { optimize, runs, evmVersion, language } = this.state