Add types to eachOfLimit callback

pull/5370/head
0mkar 6 years ago
parent 74d9df1d2f
commit a05e65bed6
  1. 4
      remix-tests/src/runTestSources.ts

@ -1,4 +1,4 @@
import async from 'async' import async, { ErrorCallback } from 'async'
require('colors') require('colors')
import { compileContractSources } from './compiler' import { compileContractSources } from './compiler'
@ -76,7 +76,7 @@ export function runTestSources(contractSources, testCallback, resultCallback, fi
cb() cb()
} }
async.eachOfLimit(contractsToTest, 1, (contractName: string, index, cb) => { async.eachOfLimit(contractsToTest, 1, (contractName: string, index: string | number, cb: ErrorCallback) => {
runTest(contractName, contracts[contractName], contractsToTestDetails[index], { accounts }, _testCallback, (err, result) => { runTest(contractName, contracts[contractName], contractsToTestDetails[index], { accounts }, _testCallback, (err, result) => {
if (err) { if (err) {
return cb(err) return cb(err)

Loading…
Cancel
Save