Skip to content

Commit

Permalink
Support @extends tag
Browse files Browse the repository at this point in the history
Resolves #2659
  • Loading branch information
Gerrit0 committed Aug 9, 2024
1 parent e7d88ce commit 48545c1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Unreleased

### Features

- Use of the `@extends` block tag no longer produces warnings, #2659.
This tag should only be used in JavaScript projects to specify the type parameters used when extending a parent class. It will not be rendered.

### Bug Fixes

- The `suppressCommentWarningsInDeclarationFiles` option now correctly ignores warnings in `.d.cts` and `.d.mts` files, #2647.
Expand Down
1 change: 1 addition & 0 deletions src/lib/utils/options/tsdoc-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const blockTags = [
"@categoryDescription",
"@default",
"@document",
"@extends",
"@group",
"@groupDescription",
"@import",
Expand Down
4 changes: 4 additions & 0 deletions tsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
"tagName": "@default",
"syntaxKind": "block"
},
{
"tagName": "@extends",
"syntaxKind": "block"
},
{
// TSDoc defines @returns, we also recognize @return for JSDoc compat
"tagName": "@return",
Expand Down

0 comments on commit 48545c1

Please sign in to comment.