From f6614a66983f535db8aeea60ceb5b683e81052de Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 11 Dec 2019 14:28:13 -0400 Subject: [PATCH] typings/linting --- services/gunDB/Mediator/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/gunDB/Mediator/index.js b/services/gunDB/Mediator/index.js index 16a1bdc1..c9329b59 100644 --- a/services/gunDB/Mediator/index.js +++ b/services/gunDB/Mediator/index.js @@ -102,13 +102,15 @@ const Event = require('../event-constants') * @typedef {import('../contact-api/SimpleGUN').UserGUNNode} UserGUNNode */ +// TO DO: move to common repo /** * @typedef {object} Emission * @prop {boolean} ok - * @prop {string|null|Record} msg + * @prop {any} msg * @prop {Record} origBody */ +// TO DO: move to common repo /** * @typedef {object} SimpleSocket * @prop {(eventName: string, data: Emission) => void} emit @@ -209,6 +211,7 @@ const instantiateGun = async () => { gun = /** @type {GUNNode} */ (__gun) + // eslint-disable-next-line require-atomic-updates user = gun.user() if (_currentAlias && _currentPass) {