diff --git a/dashwallet.js b/dashwallet.js index 22e6c9e..d96ac6b 100644 --- a/dashwallet.js +++ b/dashwallet.js @@ -267,7 +267,7 @@ * Find a friend's xpub key * @callback FindPayWallets * @param {FindFriendOpts} opts - * @returns {Array} - wallets matching this friend + * @returns {Promise>} - wallets matching this friend * * @typedef FindFriendOpts * @prop {String} handle diff --git a/index.js b/index.js index 988ed33..21a2c52 100644 --- a/index.js +++ b/index.js @@ -6,6 +6,7 @@ module.exports = require("./dashwallet.js"); // these typedef reexports will be available to dependent packages /** + * @typedef {import('./dashwallet.js').MaybeHasAddress} MaybeHasAddress * @typedef {import('./dashwallet.js').MiniUtxo} MiniUtxo * @typedef {import('./dashwallet.js').CoinInfo} CoinInfo * @typedef {import('./dashwallet.js').DenomInfo} DenomInfo diff --git a/jsconfig.json b/jsconfig.json index 3402d55..14a53dc 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -101,7 +101,7 @@ "skipLibCheck": true /* Skip type checking all .d.ts files. */ }, "include": [ - "*.js", + "dashwallet.js", "bin/**/*.js", "lib/**/*.js", "src/**/*.js" diff --git a/package-lock.json b/package-lock.json index 1badcfc..e247da7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dashwallet", - "version": "0.7.0", + "version": "0.7.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "dashwallet", - "version": "0.7.0", + "version": "0.7.1", "license": "SEE LICENSE IN LICENSE", "dependencies": { "dashhd": "^3.3.0", diff --git a/package.json b/package.json index cdcd146..0cdb0b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dashwallet", - "version": "0.7.0", + "version": "0.7.1", "description": "A more civilized wallet for a less civilized age", "main": "index.js", "bin": {}, @@ -12,12 +12,12 @@ "scripts": { "bump": "npm version -m \"chore(release): bump to v%s\"", "fmt": "npm run prettier", - "lint": "npm run jshint", + "lint": "npm run jshint && npm run tsc", "--------------": "-----------------------------------------", "jshint": "npx -p jshint@2.x -- jshint -c ./.jshintrc ./*.js", "prettier": "npx -p prettier@3.x -- prettier -w '**/*.{js,md}'", "reexport-types": "npx -p jswt@1.x -- reexport", - "tsc": "npx -p typescript@5.x -- tsc -p ./jsconfig.json", + "tsc": "! npx -p typescript@5.x -- tsc -p ./jsconfig.json | grep '\\.js(\\d\\+,\\d\\+): error' | grep -v '\\