Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: copy inherited parameter descriptions (#1303)
Original change by @kayahr in #788 but was deleted before the pull request could be merged. Fixes #787
- Loading branch information
1 parent
8edb17c
commit 9b586db
Showing
3 changed files
with
469 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export interface Base { | ||
/** | ||
* @param a - Parameter A. | ||
* @param b - Parameter B. | ||
*/ | ||
method1(a: number, b: string): void; | ||
} | ||
|
||
export class Class1 implements Base { | ||
/** @inheritDoc */ | ||
method1(a: number, b: string): void {} | ||
} | ||
|
||
export class Class2 implements Base { | ||
/** | ||
* @inheritDoc | ||
* | ||
* @param a - Custom parameter A doc. | ||
*/ | ||
method1(a: number, b: string): void {} | ||
} | ||
|
||
export class Class3 implements Base { | ||
/** | ||
* @inheritDoc | ||
* | ||
* @param c - Custom second parameter doc with name change. | ||
*/ | ||
method1(a: number, c: string): void {} | ||
} |
Oops, something went wrong.