From e59934ca2110d639671337f1ecd643791ca28c8d Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 5 Dec 2017 18:49:48 -0600 Subject: Add null to err type --- packages/subproviders/src/subproviders/injected_web3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/subproviders/src/subproviders/injected_web3.ts b/packages/subproviders/src/subproviders/injected_web3.ts index a3308d142..25d747a62 100644 --- a/packages/subproviders/src/subproviders/injected_web3.ts +++ b/packages/subproviders/src/subproviders/injected_web3.ts @@ -14,7 +14,7 @@ export class InjectedWeb3Subprovider { this.injectedWeb3 = injectedWeb3; } public handleRequest( - payload: Web3.JSONRPCRequestPayload, next: () => void, end: (err: Error, result: any) => void, + payload: Web3.JSONRPCRequestPayload, next: () => void, end: (err: Error|null, result: any) => void, ) { switch (payload.method) { case 'web3_clientVersion': -- cgit v1.2.3