So I am trying to define a type of web3 contract with typescript. We know that a web3 contract is defined in the form that
var myContract = new web3.eth.Contract(contractABI, contractAddress)
My question is that How to define a type of such contract so that the following code is possible
function myFunction(someContract: contract){...}
Any feedback will be appreciated.