Use new typings
This commit is contained in:
parent
58d7ba1237
commit
6386cfb18b
6 changed files with 18 additions and 12 deletions
|
|
@ -25,9 +25,11 @@ const SchemaManager = require('../../schema')
|
||||||
const LNDHealthMananger = require('../../../utils/lightningServices/errors')
|
const LNDHealthMananger = require('../../../utils/lightningServices/errors')
|
||||||
const { enrollContentTokens, selfContentToken } = require('../../seed')
|
const { enrollContentTokens, selfContentToken } = require('../../seed')
|
||||||
|
|
||||||
|
/// <reference path="../../../utils/GunSmith/GunT.ts" />
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('./SimpleGUN').ISEA} ISEA
|
* @typedef {import('./SimpleGUN').ISEA} ISEA
|
||||||
* @typedef {import('./SimpleGUN').UserGUNNode} UserGUNNode
|
* @typedef {GunT.UserGUNNode} UserGUNNode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ const {
|
||||||
} = require('shock-common')
|
} = require('shock-common')
|
||||||
|
|
||||||
const Key = require('../key')
|
const Key = require('../key')
|
||||||
|
/// <reference path="../../../utils/GunSmith/GunT.ts" />
|
||||||
|
|
||||||
const DEBOUNCE_WAIT_TIME = 500
|
const DEBOUNCE_WAIT_TIME = 500
|
||||||
|
|
||||||
|
|
@ -16,7 +17,7 @@ let currentSeedBackup = null
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {(seedBackup: string|null) => void} cb
|
* @param {(seedBackup: string|null) => void} cb
|
||||||
* @param {import('../SimpleGUN').UserGUNNode} user
|
* @param {GunT.UserGUNNode} user
|
||||||
* @param {import('../SimpleGUN').ISEA} SEA
|
* @param {import('../SimpleGUN').ISEA} SEA
|
||||||
* @throws {Error} If user hasn't been auth.
|
* @throws {Error} If user hasn't been auth.
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,13 @@ const {
|
||||||
}
|
}
|
||||||
} = require('shock-common')
|
} = require('shock-common')
|
||||||
const Key = require('../key')
|
const Key = require('../key')
|
||||||
|
/// <reference path="../../../utils/GunSmith/GunT.ts" />
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../SimpleGUN').GUNNode} GUNNode
|
* @typedef {GunT.GUNNode} GUNNode
|
||||||
* @typedef {import('../SimpleGUN').ListenerData} ListenerData
|
* @typedef {GunT.ListenerData} ListenerData
|
||||||
* @typedef {import('../SimpleGUN').ISEA} ISEA
|
* @typedef {import('../SimpleGUN').ISEA} ISEA
|
||||||
* @typedef {import('../SimpleGUN').UserGUNNode} UserGUNNode
|
* @typedef {GunT.UserGUNNode} UserGUNNode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ const Key = require('../key')
|
||||||
const Utils = require('../utils')
|
const Utils = require('../utils')
|
||||||
const Gun = require('gun')
|
const Gun = require('gun')
|
||||||
const { selfContentToken, enrollContentTokens } = require('../../../seed')
|
const { selfContentToken, enrollContentTokens } = require('../../../seed')
|
||||||
|
/// <reference path="../../../utils/GunSmith/GunT.ts" />
|
||||||
const TipForwarder = require('../../../tipsCallback')
|
const TipForwarder = require('../../../tipsCallback')
|
||||||
|
|
||||||
const getUser = () => require('../../Mediator').getUser()
|
const getUser = () => require('../../Mediator').getUser()
|
||||||
|
|
@ -28,10 +28,10 @@ const getUser = () => require('../../Mediator').getUser()
|
||||||
const ordersProcessed = new Set()
|
const ordersProcessed = new Set()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../SimpleGUN').GUNNode} GUNNode
|
* @typedef {GunT.GUNNode} GUNNode
|
||||||
* @typedef {import('../SimpleGUN').ListenerData} ListenerData
|
* @typedef {GunT.ListenerData} ListenerData
|
||||||
* @typedef {import('../SimpleGUN').ISEA} ISEA
|
* @typedef {import('../SimpleGUN').ISEA} ISEA
|
||||||
* @typedef {import('../SimpleGUN').UserGUNNode} UserGUNNode
|
* @typedef {GunT.UserGUNNode} UserGUNNode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,12 @@ const logger = require('../../../../config/log')
|
||||||
const { Constants, Utils: CommonUtils } = require('shock-common')
|
const { Constants, Utils: CommonUtils } = require('shock-common')
|
||||||
|
|
||||||
const Key = require('../key')
|
const Key = require('../key')
|
||||||
|
/// <reference path="../../../../utils/GunSmith/GunT.ts" />
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {import('../SimpleGUN').GUNNode} GUNNode
|
* @typedef {GunT.GUNNode} GUNNode
|
||||||
* @typedef {import('../SimpleGUN').ISEA} ISEA
|
* @typedef {import('../SimpleGUN').ISEA} ISEA
|
||||||
* @typedef {import('../SimpleGUN').UserGUNNode} UserGUNNode
|
* @typedef {GunT.UserGUNNode} UserGUNNode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ const {
|
||||||
encryptedOn,
|
encryptedOn,
|
||||||
encryptedCallback
|
encryptedCallback
|
||||||
} = require('../../../utils/ECC/socket')
|
} = require('../../../utils/ECC/socket')
|
||||||
|
/// <reference path="../../../utils/GunSmith/GunT.ts" />
|
||||||
|
|
||||||
const ALLOWED_GUN_METHODS = [
|
const ALLOWED_GUN_METHODS = [
|
||||||
'map',
|
'map',
|
||||||
|
|
@ -51,7 +52,7 @@ const getNode = root => {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {import("../contact-api/SimpleGUN").GUNNode} node
|
* @param {GunT.GUNNode} node
|
||||||
* @param {string} path
|
* @param {string} path
|
||||||
*/
|
*/
|
||||||
const getGunQuery = (node, path) => {
|
const getGunQuery = (node, path) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue