Skip to content

Commit 84465f9

Browse files
committed
Build inheritance chain after adding extends
1 parent 8f7fbf4 commit 84465f9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const path = require('path');
22
const fs = require('fs');
33
const env = require('jsdoc/env');
4+
const addInherited = require('jsdoc/augment').addInherited;
5+
const indexAll = require('jsdoc/borrow').indexAll;
46

57
const config = env.conf.typescript;
68
if (!config) {
@@ -214,3 +216,10 @@ exports.astNodeVisitor = {
214216
}
215217

216218
};
219+
220+
exports.handlers = {
221+
parseComplete: function(e) {
222+
// Build inheritance chain after adding @extends annotations
223+
addInherited(e.doclets, indexAll(e.doclets));
224+
}
225+
}

0 commit comments

Comments
 (0)