chore: fix flow
This commit is contained in:
committed by
Michael Vines
parent
0cdf532419
commit
fdece1a8a9
@ -1,6 +1,10 @@
|
|||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import {Client as RpcWebSocketClient} from 'rpc-websockets';
|
import {
|
||||||
|
Client as RpcWebSocketClient,
|
||||||
|
NodeWebSocketTypeOptions,
|
||||||
|
IWSClientAdditionalOptions,
|
||||||
|
} from 'rpc-websockets';
|
||||||
|
|
||||||
// Define TEST_LIVE in the environment to test against the real full node
|
// Define TEST_LIVE in the environment to test against the real full node
|
||||||
// identified by `url` instead of using the mock
|
// identified by `url` instead of using the mock
|
||||||
@ -11,7 +15,10 @@ let mockNotice = true;
|
|||||||
export class Client {
|
export class Client {
|
||||||
client: RpcWebSocketClient;
|
client: RpcWebSocketClient;
|
||||||
|
|
||||||
constructor(url, options) {
|
constructor(
|
||||||
|
url: string,
|
||||||
|
options: NodeWebSocketTypeOptions & IWSClientAdditionalOptions,
|
||||||
|
) {
|
||||||
//console.log('MockClient', url, options);
|
//console.log('MockClient', url, options);
|
||||||
if (!mockRpcEnabled) {
|
if (!mockRpcEnabled) {
|
||||||
if (mockNotice) {
|
if (mockNotice) {
|
||||||
|
Reference in New Issue
Block a user