typings/linting

This commit is contained in:
Daniel Lugo 2019-12-11 14:28:13 -04:00
parent 5aad3a8818
commit f6614a6698

View file

@ -102,13 +102,15 @@ const Event = require('../event-constants')
* @typedef {import('../contact-api/SimpleGUN').UserGUNNode} UserGUNNode * @typedef {import('../contact-api/SimpleGUN').UserGUNNode} UserGUNNode
*/ */
// TO DO: move to common repo
/** /**
* @typedef {object} Emission * @typedef {object} Emission
* @prop {boolean} ok * @prop {boolean} ok
* @prop {string|null|Record<string, any>} msg * @prop {any} msg
* @prop {Record<string, any>} origBody * @prop {Record<string, any>} origBody
*/ */
// TO DO: move to common repo
/** /**
* @typedef {object} SimpleSocket * @typedef {object} SimpleSocket
* @prop {(eventName: string, data: Emission) => void} emit * @prop {(eventName: string, data: Emission) => void} emit
@ -209,6 +211,7 @@ const instantiateGun = async () => {
gun = /** @type {GUNNode} */ (__gun) gun = /** @type {GUNNode} */ (__gun)
// eslint-disable-next-line require-atomic-updates
user = gun.user() user = gun.user()
if (_currentAlias && _currentPass) { if (_currentAlias && _currentPass) {