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:
committed by
Leonid Logvinov
parent
7e2e392ecc
commit
9889c8f9e0
2
packages/web3-typescript-typings/index.d.ts
vendored
2
packages/web3-typescript-typings/index.d.ts
vendored
@@ -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 {
|
||||
|
Reference in New Issue
Block a user