fix: Stringify network state on demand (#146)

This commit is contained in:
Maciej Hirsz
2019-05-14 15:19:00 +02:00
committed by GitHub
parent 74c784c62d
commit 4a48a6eecf
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export type MemoryUse = Opaque<number, 'MemoryUse'>;
export type CPUUse = Opaque<number, 'CPUUse'>;
export type BytesPerSecond = Opaque<number, 'BytesPerSecond'>;
export type NetworkId = Opaque<string, 'NetworkId'>;
export type NetworkState = Opaque<string, 'NetworkState'>;
export type NetworkState = Opaque<string | object, 'NetworkState'>;
export type BlockDetails = [BlockNumber, BlockHash, Milliseconds, Timestamp, Maybe<PropagationTime>];
export type NodeDetails = [NodeName, NodeImplementation, NodeVersion, Maybe<Address>, Maybe<NetworkId>];