refactor
This commit is contained in:
parent
5e43e8d88a
commit
4fe541b02c
1 changed files with 5 additions and 2 deletions
|
|
@ -3,12 +3,15 @@
|
||||||
*/
|
*/
|
||||||
// @ts-check
|
// @ts-check
|
||||||
const { makePromise, Constants } = require('shock-common')
|
const { makePromise, Constants } = require('shock-common')
|
||||||
|
/**
|
||||||
|
* @typedef {import('./contact-api/SimpleGUN').ValidDataValue} ValidDataValue
|
||||||
|
*/
|
||||||
|
|
||||||
const { getGun, getUser } = require('./Mediator')
|
const { getGun, getUser } = require('./Mediator')
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} rawPath
|
* @param {string} rawPath
|
||||||
* @param {import('./contact-api/SimpleGUN').ValidDataValue} value
|
* @param {ValidDataValue} value
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
const put = async (rawPath, value) => {
|
const put = async (rawPath, value) => {
|
||||||
|
|
@ -54,7 +57,7 @@ const put = async (rawPath, value) => {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} rawPath
|
* @param {string} rawPath
|
||||||
* @param {import('./contact-api/SimpleGUN').ValidDataValue} value
|
* @param {ValidDataValue} value
|
||||||
* @returns {Promise<string>}
|
* @returns {Promise<string>}
|
||||||
*/
|
*/
|
||||||
const set = async (rawPath, value) => {
|
const set = async (rawPath, value) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue