Fix ContractInstance new() not parsing properly

new is a keyword in typescript and so if a function is called new(),
tsc and for example Visual Studio Code don't regonize types for this
function. The fix is to write this function in quotes
This commit is contained in:
Olaf Tomalka
2017-12-30 21:14:37 +01:00
committed by Leonid Logvinov
parent 7e2e392ecc
commit 9889c8f9e0

View File

@@ -103,7 +103,7 @@ declare module 'web3' {
interface Contract<A extends ContractInstance> {
at(address: string): A;
new(...args: any[]): A;
'new'(...args: any[]): A;
}
interface FilterObject {