diff --git a/src/dialer/index.js b/src/dialer/index.js index eaf1313e..38353bf0 100644 --- a/src/dialer/index.js +++ b/src/dialer/index.js @@ -56,8 +56,8 @@ const METRICS_PENDING_DIAL_TARGETS = 'pending-dial-targets' * @property {Multiaddr[]} addrs * * @typedef PendingDial - * @property {DialRequest} dialRequest - * @property {TimeoutController} controller + * @property {import('./dial-request')} dialRequest + * @property {import('timeout-abort-controller').TimeoutController} controller * @property {Promise} promise * @property {function():void} destroy */ diff --git a/src/index.js b/src/index.js index d6b8254c..f9f2b6c3 100644 --- a/src/index.js +++ b/src/index.js @@ -48,6 +48,8 @@ const { updateSelfPeerRecord } = require('./record/utils') * @typedef {import('libp2p-interfaces/src/pubsub').PubsubOptions} PubsubOptions * @typedef {import('interface-datastore').Datastore} Datastore * @typedef {import('./pnet')} Protector + * @typedef {Object} PersistentPeerStoreOptions + * @property {number} [threshold] */ /** @@ -110,7 +112,7 @@ const { updateSelfPeerRecord } = require('./record/utils') * @property {KeychainOptions & import('./keychain/index').KeychainOptions} [keychain] * @property {MetricsOptions & import('./metrics').MetricsOptions} [metrics] * @property {import('./peer-routing').PeerRoutingOptions} [peerRouting] - * @property {PeerStoreOptions & import('./peer-store/persistent').PersistentPeerStoreOptions} [peerStore] + * @property {PeerStoreOptions & PersistentPeerStoreOptions} [peerStore] * @property {import('./transport-manager').TransportManagerOptions} [transportManager] * @property {Libp2pConfig} [config] * diff --git a/src/metrics/stats.js b/src/metrics/stats.js index 267f3a2e..4246588f 100644 --- a/src/metrics/stats.js +++ b/src/metrics/stats.js @@ -8,6 +8,7 @@ const retimer = require('retimer') /** * @typedef {import('@vascosantos/moving-average').IMovingAverage} IMovingAverage + * @typedef {import('bignumber.js').BigNumber} Big */ class Stats extends EventEmitter {