Use Gunsmith typing instead of old SimpleGun typing

This commit is contained in:
Daniel Lugo 2022-01-29 15:52:11 -05:00
parent fffe1313fd
commit 191e6c068d

View file

@ -33,6 +33,8 @@ const $$__SHOCKWALLET__MSG__ = '$$__SHOCKWALLET__MSG__'
const $$__SHOCKWALLET__NUMBER__ = '$$__SHOCKWALLET__NUMBER__'
const $$__SHOCKWALLET__BOOLEAN__ = '$$__SHOCKWALLET__BOOLEAN__'
/// <reference path="../../../utils/GunSmith/Smith.ts" />
mySEA.encrypt = (msg, secret) => {
if (typeof secret !== 'string') {
throw new TypeError(
@ -281,7 +283,7 @@ const isAuthenticating = () => _isAuthenticating
const isRegistering = () => _isRegistering
/**
* @returns {import('../contact-api/SimpleGUN').GUNNode}
* @returns {Smith.GunSmithNode}
*/
const getGun = () => {
throw new Error('NO GUNS')