Skip to content

Commit a45d0ea

Browse files
authored
Fix Module Import & JSDoc type errors for utils
Signed-off-by: jojobyte <[email protected]>
1 parent 93f28f4 commit a45d0ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dashkeys.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/** @typedef {import('./ripemd160.types.js').Update} RIPEMD160Update */
2727

2828
/**
29-
* @typedef {DashKeys}
29+
* @typedef DashKeys
3030
* @prop {DecodeBase58Check} decode
3131
* @prop {EncodeKeyUint8Array} encodeKey
3232
* @prop {AddressToPubKeyHash} addrToPkh
@@ -1225,6 +1225,8 @@ var DashKeys = ("object" === typeof module && exports) || {};
12251225

12261226
_DashKeys.utils = Utils;
12271227

1228+
//@ts-ignore
1229+
Window.DashKeys = _DashKeys;
12281230
//@ts-ignore
12291231
Window.BaseX = _DashKeys.BaseX = BaseX;
12301232
//@ts-ignore
@@ -1278,7 +1280,7 @@ if ("object" === typeof module) {
12781280
/**
12791281
* Developer Convenience function for Generating Non-HD (NON-RECOVERABLE) WIFs
12801282
* @callback GenerateWif
1281-
* @param {GenerateWifOpts} opts
1283+
* @param {GenerateWifOpts} [opts]
12821284
* @returns {Promise<String>} - JS Bytes Buffer (Uint8Array, Node & Browsers)
12831285
*/
12841286

0 commit comments

Comments
 (0)