From 4fe541b02cc29272bff14e580e33976496a0896e Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Tue, 6 Oct 2020 13:16:03 -0400 Subject: [PATCH] refactor --- services/gunDB/rpc.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/gunDB/rpc.js b/services/gunDB/rpc.js index 3a4bf36d..4257ef3b 100644 --- a/services/gunDB/rpc.js +++ b/services/gunDB/rpc.js @@ -3,12 +3,15 @@ */ // @ts-check const { makePromise, Constants } = require('shock-common') +/** + * @typedef {import('./contact-api/SimpleGUN').ValidDataValue} ValidDataValue + */ const { getGun, getUser } = require('./Mediator') /** * @param {string} rawPath - * @param {import('./contact-api/SimpleGUN').ValidDataValue} value + * @param {ValidDataValue} value * @returns {Promise} */ const put = async (rawPath, value) => { @@ -54,7 +57,7 @@ const put = async (rawPath, value) => { /** * @param {string} rawPath - * @param {import('./contact-api/SimpleGUN').ValidDataValue} value + * @param {ValidDataValue} value * @returns {Promise} */ const set = async (rawPath, value) => {