-
Notifications
You must be signed in to change notification settings - Fork 13
/
api-documenter.patch
26 lines (26 loc) · 1.53 KB
/
api-documenter.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/lib/documenters/MarkdownDocumenter.js b/lib/documenters/MarkdownDocumenter.js
index 06570c37c298bdbe293912fbfb13f39610dc4238..f258de721d2431d7b56bada2885ec8b52c9bb42b 100644
--- a/lib/documenters/MarkdownDocumenter.js
+++ b/lib/documenters/MarkdownDocumenter.js
@@ -873,11 +873,7 @@ class MarkdownDocumenter {
// For overloaded methods, add a suffix such as "MyClass.myMethod_2".
let qualifiedName = Utilities_1.Utilities.getSafeFilenameForName(hierarchyItem.displayName);
if (api_extractor_model_1.ApiParameterListMixin.isBaseClassOf(hierarchyItem)) {
- if (hierarchyItem.overloadIndex > 1) {
- // Subtract one for compatibility with earlier releases of API Documenter.
- // (This will get revamped when we fix GitHub issue #1308)
- qualifiedName += `_${hierarchyItem.overloadIndex - 1}`;
- }
+ qualifiedName += `_${hierarchyItem.overloadIndex}`;
}
switch (hierarchyItem.kind) {
case "Model" /* Model */:
@@ -887,7 +883,7 @@ class MarkdownDocumenter {
baseName = Utilities_1.Utilities.getSafeFilenameForName(node_core_library_1.PackageName.getUnscopedName(hierarchyItem.displayName));
break;
default:
- baseName += '.' + qualifiedName;
+ baseName += '.' + qualifiedName + '_' + hierarchyItem.kind.toLowerCase();
}
}
return baseName + '.md';