Skip to content

Commit 935e02c

Browse files
authored
Merge pull request #7 from openlayers/index
Use index directly
2 parents fca8086 + 1dd4d6a commit 935e02c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# jsdoc-plugin-typescript
22

3-
Plugin to make TypeScript's JSDoc type annotations work with JSDoc.
3+
Plugin to make TypeScript's JSDoc type annotations work with JSDoc. Requires JSDoc v3.6.0 or higher.
44

55
## Installation and use
66

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const path = require('path');
22
const fs = require('fs');
33
const env = require('jsdoc/env');
44
const addInherited = require('jsdoc/augment').addInherited;
5-
const indexAll = require('jsdoc/borrow').indexAll;
65

76
const config = env.conf.typescript;
87
if (!config) {
@@ -223,6 +222,6 @@ exports.astNodeVisitor = {
223222
exports.handlers = {
224223
parseComplete: function(e) {
225224
// Build inheritance chain after adding @extends annotations
226-
addInherited(e.doclets, indexAll(e.doclets));
225+
addInherited(e.doclets, e.doclets.index);
227226
}
228227
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"typescript"
1212
],
1313
"license": "BSD-2-Clause",
14+
"peerDependencies": {
15+
"jsdoc": "3.6.0"
16+
},
1417
"repository": {
1518
"type": "git",
1619
"url": "git://github.com/openlayers/jsdoc-plugin-typescript.git"

0 commit comments

Comments
 (0)