JSDoc: add import() support

To reference types
This commit is contained in:
larabr 2025-10-01 15:48:29 +02:00
parent 3d6374fc08
commit 9bc958c5cb
No known key found for this signature in database
GPG Key ID: 2A4BEC40729185DD
4 changed files with 1666 additions and 30 deletions

View File

@ -1,7 +1,10 @@
const pkg = require('./package.json'); const pkg = require('./package.json');
module.exports = { module.exports = {
plugins: ['plugins/markdown'], plugins: [
'plugins/markdown',
'node_modules/better-docs/typedef-import'
],
markdown: { markdown: {
idInHeadings: true idInHeadings: true
}, },

1685
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -88,6 +88,7 @@
"@web/test-runner-playwright": "^0.11.1", "@web/test-runner-playwright": "^0.11.1",
"argon2id": "^1.0.1", "argon2id": "^1.0.1",
"benchmark": "^2.1.4", "benchmark": "^2.1.4",
"better-docs": "^2.7.3",
"bn.js": "^5.2.2", "bn.js": "^5.2.2",
"c8": "^10.1.3", "c8": "^10.1.3",
"chai": "^4.5.0", "chai": "^4.5.0",

View File

@ -449,9 +449,10 @@ const util = {
return webCrypto; return webCrypto;
}, },
/** @typedef {import('node:crypto')} NodeCrypto */
/** /**
* Get native Node.js crypto api. * Get native Node.js crypto api.
* @returns {Object} The crypto module or 'undefined'. * @returns {NodeCrypto} The crypto module or 'undefined'.
*/ */
getNodeCrypto: function() { getNodeCrypto: function() {
return this.nodeRequire('crypto'); return this.nodeRequire('crypto');