Add null to err type

This commit is contained in:
Fabio Berger
2017-12-05 18:49:48 -06:00
parent c93bb4ef98
commit e59934ca21

View File

@@ -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':