mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 14:35:51 +00:00
JSDoc: add import() support
To reference types
This commit is contained in:
parent
3d6374fc08
commit
9bc958c5cb
@ -1,7 +1,10 @@
|
||||
const pkg = require('./package.json');
|
||||
|
||||
module.exports = {
|
||||
plugins: ['plugins/markdown'],
|
||||
plugins: [
|
||||
'plugins/markdown',
|
||||
'node_modules/better-docs/typedef-import'
|
||||
],
|
||||
markdown: {
|
||||
idInHeadings: true
|
||||
},
|
||||
|
||||
1685
package-lock.json
generated
1685
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -88,6 +88,7 @@
|
||||
"@web/test-runner-playwright": "^0.11.1",
|
||||
"argon2id": "^1.0.1",
|
||||
"benchmark": "^2.1.4",
|
||||
"better-docs": "^2.7.3",
|
||||
"bn.js": "^5.2.2",
|
||||
"c8": "^10.1.3",
|
||||
"chai": "^4.5.0",
|
||||
|
||||
@ -449,9 +449,10 @@ const util = {
|
||||
return webCrypto;
|
||||
},
|
||||
|
||||
/** @typedef {import('node:crypto')} NodeCrypto */
|
||||
/**
|
||||
* Get native Node.js crypto api.
|
||||
* @returns {Object} The crypto module or 'undefined'.
|
||||
* @returns {NodeCrypto} The crypto module or 'undefined'.
|
||||
*/
|
||||
getNodeCrypto: function() {
|
||||
return this.nodeRequire('crypto');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user