diff --git a/lib/index.js b/lib/index.js index 36e3750..4652fc2 100644 --- a/lib/index.js +++ b/lib/index.js @@ -86,12 +86,12 @@ module.exports = { * @param {{ path: string; keypair: Keypair; }} config */ init(peer, config) { - /** @type {Map} */ - const goals = new Map() - const listen = Obz() + // Constants: + const EMPTY_RANGE = /** @type {Range} */ ([1, 0]) - /** @type {Range} */ - const EMPTY_RANGE = [1, 0] + // State: + const goals = /** @type {Map} */ (new Map()) + const listen = Obz() /** * @private