Skip to content

Commit a6e0b92

Browse files
committed
Added Constructor to ApiItemKind, added case for Methods in inheritdoc
1 parent 0df1981 commit a6e0b92

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

api-extractor/src/definitions/ApiDocumentation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,10 @@ export default class ApiDocumentation {
475475
this.parameters = resolvedApiItem.params;
476476
this.returnsMessage = resolvedApiItem.returnsMessage;
477477
break;
478+
case ApiItemKind.Method:
479+
this.parameters = resolvedApiItem.params;
480+
this.returnsMessage = resolvedApiItem.returnsMessage;
481+
break;
478482
}
479483

480484
// Check if inheritdoc is depreacted

api-extractor/src/definitions/ApiItem.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ export enum ApiItemKind {
5050
/**
5151
* A TypeScript type literal expression, i.e. which defines an anonymous interface.
5252
*/
53-
TypeLiteral = 9
53+
TypeLiteral = 9,
54+
/**
55+
* A Typescript class constructor function.
56+
*/
57+
Constructor = 10
5458
}
5559

5660
/**

0 commit comments

Comments
 (0)