Skip to content

Commit 95e596c

Browse files
committed
link implements and extends to uid if possible and fix _getTypeNameWithDoc
1 parent 9635191 commit 95e596c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/api-documenter/src/yaml/YamlDocumenter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,11 @@ export class YamlDocumenter {
314314
const apiStructure: IApiClass | IApiInterface = docItem.apiItem as IApiClass | IApiInterface;
315315

316316
if (apiStructure.extends) {
317-
yamlItem.extends = [ apiStructure.extends ];
317+
yamlItem.extends = [ this._linkToUidIfPossible(apiStructure.extends) ];
318318
}
319319

320320
if (apiStructure.implements) {
321-
yamlItem.implements = [ apiStructure.implements ];
321+
yamlItem.implements = [ this._linkToUidIfPossible(apiStructure.implements) ];
322322
}
323323

324324
if (apiStructure.isSealed) {
@@ -547,7 +547,7 @@ export class YamlDocumenter {
547547
if (hierarchy.length > 0 && hierarchy[0].kind === DocItemKind.Package) {
548548
hierarchy.shift(); // ignore the package qualifier
549549
}
550-
if (hierarchy.length < 1) {
550+
if (hierarchy.length < 2) {
551551
return undefined;
552552
}
553553
return hierarchy.map(x => x.name).join('.');

0 commit comments

Comments
 (0)