Skip to content

Commit a2bfdad

Browse files
authored
Merge pull request #46 from openlayers/override
Remove @OverRide annotations
2 parents cfaec9e + d62b8d4 commit a2bfdad

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ TypeScript and JSDoc use a different syntax for imported types. This plugin conv
6666
* @type {`static:${dynamic}`}
6767
*/
6868

69+
**@override annotations**
70+
71+
are removed because they make JSDoc stop inheritance
72+
6973
### JSDoc
7074

7175
**Named export:**

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ exports.astNodeVisitor = {
298298
'Class<$1>$2'
299299
);
300300

301+
// Remove `@override` annotations to avoid JSDoc breaking the inheritance chain
302+
comment.value = comment.value.replace(' @override', ' ');
303+
301304
// Convert `import("path/to/module").export` to
302305
// `module:path/to/module~Name`
303306
let importMatch, lastImportPath, replaceAttempt;

0 commit comments

Comments
 (0)