aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorOlaf Tomalka <olaf@tomalka.me>2017-12-31 04:14:37 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:37 +0800
commit9889c8f9e00707aeb7af4f79769ad6ad5b620f4d (patch)
treed89b4e95f827035954fd095cf7b588fbb48a1539 /packages
parent7e2e392ecc72ea540c38f78a581f1c1f4c0f5b7e (diff)
downloaddexon-0x-contracts-9889c8f9e00707aeb7af4f79769ad6ad5b620f4d.tar
dexon-0x-contracts-9889c8f9e00707aeb7af4f79769ad6ad5b620f4d.tar.gz
dexon-0x-contracts-9889c8f9e00707aeb7af4f79769ad6ad5b620f4d.tar.bz2
dexon-0x-contracts-9889c8f9e00707aeb7af4f79769ad6ad5b620f4d.tar.lz
dexon-0x-contracts-9889c8f9e00707aeb7af4f79769ad6ad5b620f4d.tar.xz
dexon-0x-contracts-9889c8f9e00707aeb7af4f79769ad6ad5b620f4d.tar.zst
dexon-0x-contracts-9889c8f9e00707aeb7af4f79769ad6ad5b620f4d.zip
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
Diffstat (limited to 'packages')
-rw-r--r--packages/web3-typescript-typings/index.d.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts
index 677ed3e96..aa15ad86e 100644
--- a/packages/web3-typescript-typings/index.d.ts
+++ b/packages/web3-typescript-typings/index.d.ts
@@ -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 {